diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2012-08-07 11:42:44 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2012-08-07 11:42:44 +0000 |
commit | a58112e0200336c6563cbaf17a4d9b52e970e815 (patch) | |
tree | 2a4a11a22642c3a5d963d8c87e577ccb9b910f75 /app-text/liblangtag | |
parent | Move kde-misc/kdocker to x11-misc/kdocker. (diff) | |
download | gentoo-2-a58112e0200336c6563cbaf17a4d9b52e970e815.tar.gz gentoo-2-a58112e0200336c6563cbaf17a4d9b52e970e815.tar.bz2 gentoo-2-a58112e0200336c6563cbaf17a4d9b52e970e815.zip |
Initial commit, will be required by libreoffice-3.7.
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
Diffstat (limited to 'app-text/liblangtag')
-rw-r--r-- | app-text/liblangtag/ChangeLog | 10 | ||||
-rw-r--r-- | app-text/liblangtag/files/liblangtag-0.3-automagic-tests.patch | 38 | ||||
-rw-r--r-- | app-text/liblangtag/liblangtag-0.3.ebuild | 55 | ||||
-rw-r--r-- | app-text/liblangtag/metadata.xml | 8 |
4 files changed, 111 insertions, 0 deletions
diff --git a/app-text/liblangtag/ChangeLog b/app-text/liblangtag/ChangeLog new file mode 100644 index 000000000000..7ab953a75ecd --- /dev/null +++ b/app-text/liblangtag/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-text/liblangtag +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/liblangtag/ChangeLog,v 1.1 2012/08/07 11:42:43 scarabeus Exp $ + +*liblangtag-0.3 (07 Aug 2012) + + 07 Aug 2012; Tomáš Chvátal <scarabeus@gentoo.org> + +files/liblangtag-0.3-automagic-tests.patch, +liblangtag-0.3.ebuild, + +metadata.xml: + Initial commit, will be required by libreoffice-3.7. diff --git a/app-text/liblangtag/files/liblangtag-0.3-automagic-tests.patch b/app-text/liblangtag/files/liblangtag-0.3-automagic-tests.patch new file mode 100644 index 000000000000..c5d3b3f895bc --- /dev/null +++ b/app-text/liblangtag/files/liblangtag-0.3-automagic-tests.patch @@ -0,0 +1,38 @@ +diff -urN liblangtag-0.3.old/configure.ac liblangtag-0.3/configure.ac +--- liblangtag-0.3.old/configure.ac 2012-08-07 13:05:39.078159231 +0200 ++++ liblangtag-0.3/configure.ac 2012-08-07 13:10:43.595164908 +0200 +@@ -88,9 +88,18 @@ + PKG_CHECK_MODULES(LIBXML2, libxml-2.0 >= $LIBXML2_REQUIRED) + PKG_CHECK_MODULES(GOBJECT, gobject-2.0 >= $GOBJECT_REQUIRED, has_gobject=yes, has_gobject=no) + PKG_CHECK_MODULES(GMODULE, gmodule-2.0, has_gmodule=yes, has_gmodule=no) +-PKG_CHECK_MODULES(CHECK, check >= $CHECK_REQUIRED, +- [use_check="yes"], +- [use_check="no"]) ++AC_ARG_ENABLE([test], ++ [AC_HELP_STRING([--disable-test], [Disable tests])], ++ [enable_test="$enableval"], ++ [enable_test=yes] ++) ++if test x"$enable_test" != x"no"; then ++ PKG_CHECK_MODULES(CHECK, check >= $CHECK_REQUIRED, ++ [use_check="yes"], ++ [use_check="no"]) ++else ++ use_check=no ++fi + + if test x$has_gmodule != xno; then + AC_DEFINE(ENABLE_GMODULE,, [Using gmodule]) +diff -urN liblangtag-0.3.old/Makefile.am liblangtag-0.3/Makefile.am +--- liblangtag-0.3.old/Makefile.am 2012-08-07 13:05:39.067159226 +0200 ++++ liblangtag-0.3/Makefile.am 2012-08-07 13:15:50.431169857 +0200 +@@ -10,8 +10,7 @@ + SUBDIRS += tests + + ACLOCAL_AMFLAGS = \ +- -I m4macros \ +- $(NULL) ++ -I m4macros + + CONFIGURE_DEPENDENCIES = \ + requires \ diff --git a/app-text/liblangtag/liblangtag-0.3.ebuild b/app-text/liblangtag/liblangtag-0.3.ebuild new file mode 100644 index 000000000000..eaa1f5b51582 --- /dev/null +++ b/app-text/liblangtag/liblangtag-0.3.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/liblangtag/liblangtag-0.3.ebuild,v 1.1 2012/08/07 11:42:43 scarabeus Exp $ + +EAPI=4 + +inherit base autotools + +DESCRIPTION="An interface library to access tags for identifying languages" +HOMEPAGE="https://github.com/tagoh/liblangtag/" +SRC_URI="https://github.com/downloads/tagoh/${PN}/${P}.tar.bz2" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="introspection static-libs test" + +RDEPEND=" + dev-libs/glib + dev-libs/libxml2 + introspection? ( >=dev-libs/gobject-introspection-0.10.8 ) +" +DEPEND="${RDEPEND} + sys-devel/gettext + test? ( dev-libs/check ) + >=dev-util/gtk-doc-am-1.13 + dev-libs/gobject-introspection-common +" +# gtk-doc-am and gobject-introspection-common required by autoreconf + +PATCHES=( + "${FILESDIR}/${P}-automagic-tests.patch" +) + +# Upstream expect liblangtag to be installed when one runs tests... +RESTRICT="test" + +src_prepare() { + base_src_prepare + + eautoreconf +} + +src_configure() { + econf \ + $(use_enable introspection) \ + $(use_enable static-libs static) \ + $(use_enable test) +} + +src_install() { + default + + find "${ED}" -name '*.la' -exec rm -f {} + +} diff --git a/app-text/liblangtag/metadata.xml b/app-text/liblangtag/metadata.xml new file mode 100644 index 000000000000..6e74494a71e1 --- /dev/null +++ b/app-text/liblangtag/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>openoffice</herd> + <use> + <flag name="introspection">Use <pkg>dev-libs/gobject-introspection</pkg> for introspection</flag> + </use> +</pkgmetadata> |