Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sys-devel/gettext/Manifest
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
DIST gettext-0.24.1.tar.xz 8382600 BLAKE2B 248960052c6f54aa9bc4c3b43822e7353d64152480103ced9e02c2abf298d3e7b48a69c0c03a6c61a76299cfcd0f6ed01e9d5c250f7d41cf21b20b0074eea5a3 SHA512 53d5c54105598cc6156b940ff82d9754f4b7cdeafcd2400206c975db9412012511b60a7ebefcd31068a0bc2d99173ecd93a66844c7f3a9772df69d53b3cebeb5
DIST gettext-0.24.tar.xz 8314092 BLAKE2B a171c9a62552d8cbb632f76c734c7b8ef0b99ae56a2b12548bfc61fe671ad4c39611b4e66fe89e51a1d1d31f1052fb6a1d33930820fd0fa8d9fb83bd38504e50 SHA512 8e362d99f5e2e13b7d3dd71b80d6fe53e4337fc2ca9cc75d23b7635caae20262f3f6ee6f4665e1db64ff56b99a0afa1411f0c859673428e8b81a7943feec1549
DIST gettext-0.26.tar.xz 10061740 BLAKE2B b182e5fdb9fc46868dc39b512ef300c54c8e77a766f2d2de69289f84966d4205f494b3ecedfb30c6df581947172411ae7eb4ccc0bb1f180b67dd8a83803832a8 SHA512 544e41c9390695df1c21542842e9ca027a03cb7d4045d8cd759dec1a3dfb624aae900751b458bdb31d6454b37c40c474a952059b884555a03c7c95d6d0e687b1
DIST gettext-1.0.tar.xz 10721600 BLAKE2B 052bd847c8cdb963437613583256e430b52e27e5ebe29a04df6ac549552ab0f85a1e637b991ebb57e82805fb6d2d23f37c4b70d7f711dc086f57a3a32ba3f00e SHA512 fa657faf5685dae7121a9b0293d3308a3910a72b90943a7a493b88cf88e95f29c5758e1573320169fe9beac6f101ef76f4165a279a7f3294155d7a773e2fa09f
104 changes: 104 additions & 0 deletions sys-devel/gettext/gettext-1.0.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
# Distributed under the terms of the GNU General Public License v2
# Autogen by MARK Devkit

EAPI=7
inherit libtool java-pkg-opt-2

DESCRIPTION="GNU locale utilities"
HOMEPAGE="https://www.gnu.org/software/gettext/"
SRC_URI="https://ftp.gnu.org/pub/gnu/gettext/gettext-1.0.tar.xz -> gettext-1.0.tar.xz"
LICENSE="GPL-3+ cxx? ( LGPL-2.1+ )"
SLOT="0"
KEYWORDS="*"
IUSE="acl -cvs +cxx doc emacs git java ncurses nls openmp static-libs xattr"
BDEPEND="git? ( dev-vcs/git )

"
RDEPEND="${DEPEND}
git? ( dev-vcs/git )
java? ( virtual/jdk )

"
DEPEND="virtual/libiconv
virtual/libintl
dev-libs/libxml2
dev-libs/expat
acl? ( virtual/acl )
ncurses? ( sys-libs/ncurses )
java? ( virtual/jdk )

"
PDEPEND="emacs? ( app-emacs/po-mode )

"
pkg_setup() {
java-pkg-opt-2_pkg_setup
}
src_prepare() {
java-pkg-opt-2_src_prepare
default
elibtoolize
}
src_configure() {
local myconf=(
# switches common to runtime and top-level
--cache-file=${S}/config.cache
# Emacs support is now in a separate package
--without-emacs
--without-lispdir
# glib depends on us so avoid circular deps
--with-included-glib
# libcroco depends on glib which ... ^^^
--with-included-libcroco
# this will _disable_ libunistring (since it is not bundled),
--with-included-libunistring
# Never build libintl since it's in dev-libs/libintl now.
--without-included-gettext
# Never build bundled copy of libxml2.
--without-included-libxml
--disable-csharp
--without-cvs
$(use_enable acl)
$(use_enable cxx c++)
$(use_enable cxx libasprintf)
$(use_with git)
$(use_enable java)
$(use_enable ncurses curses)
$(use_enable nls)
$(use_enable openmp)
$(use_enable static-libs static)
$(use_enable xattr attr)
)
local ECONF_SOURCE="${S}"
econf "${myconf[@]}"
}
src_install() {
emake DESTDIR="${D}" install
dosym msgfmt /usr/bin/gmsgfmt # bug #43435
dobin gettext-tools/misc/gettextize
# 909041 never install libintl which upstream insists on building
rm -f "${ED}"/usr/$(get_libdir)/libintl.* "${ED}"/usr/include/libintl.h
find "${ED}" -type f -name "*.la" -delete || die
if use java ; then
java-pkg_dojar "${ED}"/usr/share/${PN}/*.jar
rm "${ED}"/usr/share/${PN}/*.jar || die
rm "${ED}"/usr/share/${PN}/*.class || die
if use doc ; then
java-pkg_dojavadoc "${ED}"/usr/share/doc/${PF}/html/javadoc2
fi
fi
dodoc AUTHORS ChangeLog NEWS README THANKS
if use doc ; then
docinto html
dodoc "${ED}"/usr/share/doc/${PF}/*.html
else
rm -rf "${ED}"/usr/share/doc/${PF}/{csharpdoc,examples,javadoc2,javadoc1}
fi
rm "${ED}"/usr/share/doc/${PF}/*.html || die
}
pkg_preinst() {
java-pkg-opt-2_pkg_preinst
}


# vim: filetype=ebuild