diff options
Diffstat (limited to 'app-crypt/xca/xca-0.8.1.ebuild')
-rw-r--r-- | app-crypt/xca/xca-0.8.1.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/app-crypt/xca/xca-0.8.1.ebuild b/app-crypt/xca/xca-0.8.1.ebuild new file mode 100644 index 0000000..7cf72e9 --- /dev/null +++ b/app-crypt/xca/xca-0.8.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/xca/xca-0.8.1.ebuild,v 1.4 2010/06/26 13:11:28 nixnut Exp $ + +EAPI="3" + +inherit eutils flag-o-matic toolchain-funcs + +DESCRIPTION="A graphical user interface to OpenSSL, RSA public keys, certificates, signing requests and revokation lists" +HOMEPAGE="http://www.hohnstaedt.de/xca.html" +SRC_URI="mirror://sourceforge/xca/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="" +IUSE="doc" + +RDEPEND=">=dev-libs/openssl-0.9.8[-bindist] + x11-libs/qt-gui:4" +DEPEND="${RDEPEND} + doc? ( app-text/linuxdoc-tools )" + +src_prepare() { + # http://sourceforge.net/tracker/index.php?func=detail&aid=1800298&group_id=62274&atid=500028 + epatch "${FILESDIR}/${P}-qt_detection.patch" + + sed -e 's/$(LD) $(LDFLAGS)/$(LD) $(RAW_LDFLAGS)/' -i Makefile Rules.mak || die "sed failed" +} + +src_configure() { + local LINUXDOC + use doc || LINUXDOC='touch $@ && true' + + QTDIR=/usr \ + STRIP="true" \ + LINUXDOC="${LINUXDOC}" \ + CC="$(tc-getCC)" \ + LD="$(tc-getLD)" \ + CFLAGS="${CXXFLAGS}" \ + prefix=/usr \ + docdir=/usr/share/doc/${PF} \ + ./configure || die "configure failed" +} + +src_compile() { + emake RAW_LDFLAGS="$(raw-ldflags)" || die "emake failed" +} + +src_install() { + emake destdir="${D}" mandir="share/man" install || die "emake install failed" + + dodoc AUTHORS + + insinto /etc/xca + doins misc/*.txt +} |