diff options
author | Akinori Hattori <hattya@gentoo.org> | 2017-07-05 22:20:31 +0900 |
---|---|---|
committer | Akinori Hattori <hattya@gentoo.org> | 2017-07-05 22:20:31 +0900 |
commit | daaadfecd3dbbe0685dd91e1c61ce08a1bfdccac (patch) | |
tree | b5d4a3dd8e78c29015fa9dd102c6b02b9794edc3 /dev-libs/m17n-lib/m17n-lib-1.7.0.ebuild | |
parent | dev-libs/m17n-lib: update patches (diff) | |
download | gentoo-daaadfecd3dbbe0685dd91e1c61ce08a1bfdccac.tar.gz gentoo-daaadfecd3dbbe0685dd91e1c61ce08a1bfdccac.tar.bz2 gentoo-daaadfecd3dbbe0685dd91e1c61ce08a1bfdccac.zip |
dev-libs/m17n-lib: new upstream release
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'dev-libs/m17n-lib/m17n-lib-1.7.0.ebuild')
-rw-r--r-- | dev-libs/m17n-lib/m17n-lib-1.7.0.ebuild | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/dev-libs/m17n-lib/m17n-lib-1.7.0.ebuild b/dev-libs/m17n-lib/m17n-lib-1.7.0.ebuild new file mode 100644 index 000000000000..fc89235d9280 --- /dev/null +++ b/dev-libs/m17n-lib/m17n-lib-1.7.0.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit autotools + +DESCRIPTION="Multilingual Library for Unix/Linux" +HOMEPAGE="https://savannah.nongnu.org/projects/m17n" +SRC_URI="mirror://nongnu/m17n/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="X anthy athena bidi fontconfig gd libotf libxml2 spell xft" + +RDEPEND="~dev-db/m17n-db-${PV} + X? ( + x11-libs/libX11 + athena? ( x11-libs/libXaw ) + bidi? ( dev-libs/fribidi ) + fontconfig? ( media-libs/fontconfig ) + gd? ( media-libs/gd[png] ) + libotf? ( dev-libs/libotf ) + xft? ( + media-libs/freetype + x11-libs/libXft + ) + ) + anthy? ( app-i18n/anthy ) + libxml2? ( dev-libs/libxml2 ) + spell? ( app-text/aspell )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-configure.patch + "${FILESDIR}"/${PN}-gui.patch + "${FILESDIR}"/${PN}-ispell.patch + "${FILESDIR}"/${PN}-parallel-make.patch +) + +src_prepare() { + default + + eautoreconf + # workaround for parallel install + sed -i "/^install-module/s/:/: install-libLTLIBRARIES/" src/Makefile.in +} + +src_configure() { + local myconf=( + $(use_with anthy) + $(use_with libxml2) + $(use_with spell ispell) + ) + if use X; then + myconf+=( + $(use_with athena) + $(use_with bidi fribidi) + $(use_with fontconfig) + $(use_with xft freetype) + $(use_with gd) + --with-gui + $(use_with libotf) + --with-x + $(use_with xft) + ) + else + myconf+=( + --without-athena + --without-fontconfig + --without-freetype + --without-fribidi + --without-gd + --without-gui + --without-libotf + --without-x + --without-xft + ) + fi + + econf "${myconf[@]}" +} |