dev-libs/m17n-lib: new upstream release
authorAkinori Hattori <hattya@gentoo.org>
Tue, 28 Aug 2018 14:02:09 +0000 (23:02 +0900)
committerAkinori Hattori <hattya@gentoo.org>
Tue, 28 Aug 2018 14:02:09 +0000 (23:02 +0900)
Package-Manager: Portage-2.3.40, Repoman-2.3.9

dev-libs/m17n-lib/Manifest
dev-libs/m17n-lib/m17n-lib-1.8.0.ebuild [new file with mode: 0644]
dev-libs/m17n-lib/metadata.xml

index 88e4c703a4915a67ede42b73216b85e8bbc5094b..4af74c61ae165eee19b9a9000879ff44e869291f 100644 (file)
@@ -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 (file)
index 0000000..7ea10bb
--- /dev/null
@@ -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[@]}"
+}
index 0c2995cb954a0125f481a342289a730468d3fe3b..75b918da50849112df2ba94507a1f72e4f4e656f 100644 (file)
@@ -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>