diff options
author | Sven 'sleipnir' Rebhan <odinshorse@googlemail.com> | 2009-06-01 09:10:31 +0000 |
---|---|---|
committer | Sven 'sleipnir' Rebhan <odinshorse@googlemail.com> | 2009-06-01 09:10:31 +0000 |
commit | 04ce1abd93c545e7f3f927b83bbadb0c755e02c9 (patch) | |
tree | 4b49a0300cc528f1e5ba44e4fbff5180fa1d0fe6 /dev-libs | |
parent | keep python-2.6 in sync with portage (diff) | |
download | embedded-cross-04ce1abd93c545e7f3f927b83bbadb0c755e02c9.tar.gz embedded-cross-04ce1abd93c545e7f3f927b83bbadb0c755e02c9.tar.bz2 embedded-cross-04ce1abd93c545e7f3f927b83bbadb0c755e02c9.zip |
Add pkg-config support for libgpg-error (taken from openembedded).
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/libgpg-error/Manifest | 3 | ||||
-rw-r--r-- | dev-libs/libgpg-error/files/libgpg-error-pkgconfig-support.patch | 54 | ||||
-rw-r--r-- | dev-libs/libgpg-error/libgpg-error-1.7.ebuild | 41 |
3 files changed, 98 insertions, 0 deletions
diff --git a/dev-libs/libgpg-error/Manifest b/dev-libs/libgpg-error/Manifest new file mode 100644 index 0000000..05ea723 --- /dev/null +++ b/dev-libs/libgpg-error/Manifest @@ -0,0 +1,3 @@ +AUX libgpg-error-pkgconfig-support.patch 1743 RMD160 996fdfd988bdbb5939f43d13ed45006b81f20c63 SHA1 d0dfdec1ccb636a632a0c1f3893e7a4d460eeabe SHA256 e44bc535feed21a067abe692b291d677deeaf7d1751d5a7234814a9c057e868d +DIST libgpg-error-1.7.tar.bz2 403751 RMD160 6f9004baf8e707b5995a276b5a454102405a6afc SHA1 bf8c6babe1e28cae7dd6374ca24ddcc42d57e902 SHA256 0301331b3e82f552c60c449388dc6d55d68cff4efa84523b352c4d522f4b5a91 +EBUILD libgpg-error-1.7.ebuild 1057 RMD160 eee6a9cf81aba4fd942256bbf596c2594d28de40 SHA1 632c43595c50511d31203a07416376d55407bb9b SHA256 ba0ebbd4798ec2af102acb1fb73259040e8d2a2ee9f25e885caf9f8105df49b8 diff --git a/dev-libs/libgpg-error/files/libgpg-error-pkgconfig-support.patch b/dev-libs/libgpg-error/files/libgpg-error-pkgconfig-support.patch new file mode 100644 index 0000000..e7658fc --- /dev/null +++ b/dev-libs/libgpg-error/files/libgpg-error-pkgconfig-support.patch @@ -0,0 +1,54 @@ + +# +# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher +# + +Index: configure.ac +=================================================================== +--- configure.ac.orig ++++ configure.ac +@@ -117,6 +117,7 @@ GPG_ERROR_CONFIG_CFLAGS="" + AC_SUBST(GPG_ERROR_CONFIG_LIBS) + AC_SUBST(GPG_ERROR_CONFIG_CFLAGS) + AC_CONFIG_FILES([src/gpg-error-config], [chmod +x src/gpg-error-config]) ++AC_CONFIG_FILES([src/gpg-error.pc]) + + + # Special defines for certain platforms +Index: src/Makefile.am +=================================================================== +--- src/Makefile.am.orig ++++ src/Makefile.am +@@ -28,6 +28,8 @@ include_HEADERS = gpg-error.h + bin_SCRIPTS = gpg-error-config + m4datadir = $(datadir)/aclocal + m4data_DATA = gpg-error.m4 ++pkgconfigdir = $(libdir)/pkgconfig ++pkgconfig_DATA = gpg-error.pc + + + EXTRA_DIST = mkstrtable.awk err-sources.h.in err-codes.h.in \ +@@ -35,7 +37,7 @@ EXTRA_DIST = mkstrtable.awk err-sources. + mkerrcodes.awk mkerrcodes1.awk mkerrcodes2.awk mkerrcodes.c \ + mkheader.awk gpg-error.h.in \ + err-sources.h err-codes.h gpg-error-config.in gpg-error.m4 \ +- gpg-error.def versioninfo.rc.in ++ gpg-error.def versioninfo.rc.in gpg-error.pc.in + + BUILT_SOURCES = err-sources.h err-codes.h code-to-errno.h code-from-errno.h \ + err-sources-sym.h err-codes-sym.h errnos-sym.h gpg-error.h +Index: src/gpg-error.pc.in +=================================================================== +--- /dev/null ++++ src/gpg-error.pc.in +@@ -0,0 +1,10 @@ ++prefix=@prefix@ ++exec_prefix=@exec_prefix@ ++libdir=@libdir@ ++includedir=@includedir@ ++ ++Name: gpg-error ++Description: a library that defines common error values for all GnuPG components ++Version: @VERSION@ ++Libs: -L${libdir} -lgpg-error ++Cflags: -I${includedir} diff --git a/dev-libs/libgpg-error/libgpg-error-1.7.ebuild b/dev-libs/libgpg-error/libgpg-error-1.7.ebuild new file mode 100644 index 0000000..c779178 --- /dev/null +++ b/dev-libs/libgpg-error/libgpg-error-1.7.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libgpg-error/libgpg-error-1.7.ebuild,v 1.8 2009/05/22 14:33:15 armin76 Exp $ + +inherit libtool eutils autotools + +DESCRIPTION="Contains error handling functions used by GnuPG software" +HOMEPAGE="http://www.gnupg.org/related_software/libgpg-error" +SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd" +IUSE="nls" + +RDEPEND="nls? ( virtual/libintl )" +DEPEND="nls? ( sys-devel/gettext )" + +src_unpack() { + unpack ${A} + cd "${S}" + + # Add pkg-config support to this package + # (for easier cross-compilation). + epatch "${FILESDIR}/${PN}-pkgconfig-support.patch" + + eautoreconf + + # for BSD? + elibtoolize +} + +src_compile() { + econf $(use_enable nls) + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc AUTHORS ChangeLog NEWS README +} |