summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-crypt/gpgme/gpgme-0.3.14-r1.ebuild')
-rw-r--r--app-crypt/gpgme/gpgme-0.3.14-r1.ebuild54
1 files changed, 30 insertions, 24 deletions
diff --git a/app-crypt/gpgme/gpgme-0.3.14-r1.ebuild b/app-crypt/gpgme/gpgme-0.3.14-r1.ebuild
index 2021f8ed60da..efde204de7f0 100644
--- a/app-crypt/gpgme/gpgme-0.3.14-r1.ebuild
+++ b/app-crypt/gpgme/gpgme-0.3.14-r1.ebuild
@@ -1,60 +1,67 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/gpgme/gpgme-0.3.14-r1.ebuild,v 1.1 2004/08/07 08:18:25 dragonheart Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/gpgme/gpgme-0.3.14-r1.ebuild,v 1.1.1.1 2005/11/30 09:44:57 chriswhite Exp $
+
+inherit eutils
DESCRIPTION="GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG easier for applications."
HOMEPAGE="http://www.gnupg.org/gpgme.html"
-SRC_URI="ftp://ftp.gnupg.org/gcrypt/gpgme/${P}.tar.gz"
+SRC_URI="mirror://gnupg/gpgme/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0.3"
-KEYWORDS="-*"
-IUSE="nls doc smime"
+KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
+IUSE="doc"
+# smime once post gnupg-1.9+ gets unmasked
DEPEND=">=sys-libs/zlib-1.1.3
- >=app-crypt/gnupg-1.0.7
sys-apps/gawk
sys-devel/libtool
sys-devel/gcc
sys-devel/autoconf
sys-devel/automake
>=sys-apps/sed-4
- nls? ( sys-devel/gettext )
- >=app-crypt/gnupg-1.2.0
- smime? ( >=app-crypt/newpg-0.9.2 )"
+ >=app-crypt/gnupg-1.2.0"
+
+#For gnupg-1.9+ gets unmasked
+# !smime? ( >=app-crypt/gnupg-1.2.5 )
+# smime? ( >=app-crypt/gnupg-1.9.10 )
RDEPEND="virtual/libc"
src_unpack() {
unpack ${A}
cd ${S}
+ epatch ${FILESDIR}/gpgme3.m4.patch
find . -name Makefile -o -name Makefile.in -exec rm {} \;
+ rm doc/gpgme.info-?
sed -i -e 's:libgpgme:libgpgme3:g' \
`find . -name Makefile.am` doc/gpgme.info
sed -i -e 's:gpgme-config:gpgme3-config:g' \
configure.ac gpgme/Makefile.am doc/gpgme.texi \
- ./doc/gpgme.info-1 gpgme/gpgme-config.in
+ gpgme/gpgme-config.in
sed -i -e 's:gpgme\.info:gpgme3.info:g' \
-e 's:gpgme\.texi:gpgme3\.texi:g' \
doc/Makefile.am doc/gpgme.info
sed -i -e 's:-lgpgme:-lgpgme3:g' \
- gpgme/gpgme-config.in doc/gpgme.info-1 \
+ gpgme/gpgme-config.in \
doc/gpgme.texi configure.ac
sed -i -e 's:gpgme\.m4:gpgme3.m4:g' \
- -e 's:gpgme\.h:gpgme3.h:g' \
- gpgme/Makefile.am configure.ac doc/gpgme.texi
+ gpgme/Makefile.am configure.ac doc/gpgme.texi \
+ gpgme/mkerrors \
+ `find . -name \*.c -o -name \*.h`
sed -i -e 's:gpgme\.info:gpgme3.info:' doc/gpgme.texi
mv doc/gpgme{,3}.texi
mv gpgme/gpgme{,3}-config.in
mv gpgme/gpgme{,3}.m4
- mv gpgme/gpgme{,3}.h
+ # mv gpgme/gpgme{,3}.h
}
@@ -67,25 +74,24 @@ src_compile() {
if [ -x ${ROOT}usr/bin/gpg2 ]; then
myconf="${myconf} --with-gpg=${ROOT}usr/bin/gpg2"
else
- myconf="${myconf} --with-gpg=${ROOT}usr/bin/gpg2"
+ myconf="${myconf} --with-gpg=${ROOT}usr/bin/gpg"
fi
- aclocal
- autoconf
- automake
+ autoconf || die "autoconf failed"
+ aclocal || die "Aclocal failed"
+ automake || die "automake failed"
+
+ # For gnugpg-1.9+
+ # $(use_with smime gpgsm /usr/bin/gpgsm)
+ #
econf \
--enable-gpgmeplug \
--includedir=/usr/include/gpgme3 \
- $(use_with smime gpgsm /usr/bin/gpgsm) \
- `use_enable nls` \
- --with-gpg=$GPGBIN \
${myconf} \
|| die "econf failed"
-
- econf ${myconf} || die "econf failed"
- emake || die
+ emake || die "make failed"
}
src_install() {