summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2018-08-28 23:02:09 +0900
committerAkinori Hattori <hattya@gentoo.org>2018-08-28 23:02:09 +0900
commita2bec49a3f9149ae56868b7a95a6c6fd2e25cf4f (patch)
tree0a03cf121fcec3e118cdbf8585932a3f453ca6c1 /dev-libs/m17n-lib
parentdev-libs/m17n-lib: rename patch (diff)
downloadgentoo-a2bec49a3f9149ae56868b7a95a6c6fd2e25cf4f.tar.gz
gentoo-a2bec49a3f9149ae56868b7a95a6c6fd2e25cf4f.tar.bz2
gentoo-a2bec49a3f9149ae56868b7a95a6c6fd2e25cf4f.zip
dev-libs/m17n-lib: new upstream release
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'dev-libs/m17n-lib')
-rw-r--r--dev-libs/m17n-lib/Manifest1
-rw-r--r--dev-libs/m17n-lib/m17n-lib-1.8.0.ebuild85
-rw-r--r--dev-libs/m17n-lib/metadata.xml31
3 files changed, 98 insertions, 19 deletions
diff --git a/dev-libs/m17n-lib/Manifest b/dev-libs/m17n-lib/Manifest
index 88e4c703a491..4af74c61ae16 100644
--- a/dev-libs/m17n-lib/Manifest
+++ b/dev-libs/m17n-lib/Manifest
@@ -1 +1,2 @@
DIST m17n-lib-1.7.0.tar.gz 1063169 BLAKE2B 61192d26dec8a8bdb55b6a819c5b1aa5503e4320d57864889065c9490ee6720f5b258fbef10d5944f69f5a9ccbe49ea5494c8b0a10d536592c301f46df6826c5 SHA512 26fc1be02a5e487a2fa5f2f63d991f3c745aa1b78e20d931fe4b265125266501cc8d402aa3cb5c1b71a7d4c0f7a0bf5b2c3b17ec5f4f8e0f5ee3052ad4e205b7
+DIST m17n-lib-1.8.0.tar.gz 1091731 BLAKE2B a4b55fbc3246fe0865dcf1647e91d03de6ead06fb4349ba207613cdea6bb079c0e7623510a6fb046dce4bfefd262f68c41c9174d29a2b4a6f673da298642e1cb SHA512 8aba862888393232172c03cdf52531e29ea969c4327e6f69879ecf7438eafee32782f509ec292b3e1b7cd3202e2764984d7a59e85cdb87a7c8bfcbac5b0ee6fd
diff --git a/dev-libs/m17n-lib/m17n-lib-1.8.0.ebuild b/dev-libs/m17n-lib/m17n-lib-1.8.0.ebuild
new file mode 100644
index 000000000000..7ea10bb0d920
--- /dev/null
+++ b/dev-libs/m17n-lib/m17n-lib-1.8.0.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2018 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 https://git.savannah.nongnu.org/cgit/m17n/m17n-lib.git"
+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}-freetype.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[@]}"
+}
diff --git a/dev-libs/m17n-lib/metadata.xml b/dev-libs/m17n-lib/metadata.xml
index 0c2995cb954a..75b918da5084 100644
--- a/dev-libs/m17n-lib/metadata.xml
+++ b/dev-libs/m17n-lib/metadata.xml
@@ -1,23 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <maintainer type="project">
- <email>cjk@gentoo.org</email>
- <name>Cjk</name>
- </maintainer>
- <use>
- <flag name="X">Build the Graphical User Interface API and utilities</flag>
- <flag name="anthy">
- Enable support for <pkg>app-i18n/anthy</pkg> input method
- </flag>
- <flag name="athena">
- Enable the MIT Athena widget set (<pkg>x11-libs/libXaw</pkg>)
- </flag>
- <flag name="gd">
- Build API and utilities based on <pkg>media-libs/gd</pkg>. This
- flag is only meaningful if the X USE flag is also enabled.
- </flag>
- <flag name="libotf">Use <pkg>dev-libs/libotf</pkg> to handle OpenType fonts</flag>
- <flag name="libxml2">Use <pkg>dev-libs/libxml2</pkg> to parse XML</flag>
- </use>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <use>
+ <flag name="X">Build the Graphical User Interface API and utilities</flag>
+ <flag name="anthy">Enable support for <pkg>app-i18n/anthy</pkg> input method</flag>
+ <flag name="athena">Enable the MIT Athena widget set (<pkg>x11-libs/libXaw</pkg>)</flag>
+ <flag name="gd">Build API and utilities based on <pkg>media-libs/gd</pkg>. This flag is only meaningful if the X USE flag is also enabled</flag>
+ <flag name="libotf">Use <pkg>dev-libs/libotf</pkg> to handle OpenType fonts</flag>
+ <flag name="libxml2">Use <pkg>dev-libs/libxml2</pkg> to parse XML</flag>
+ </use>
</pkgmetadata>