summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2015-12-13 11:38:30 +0100
committerUlrich Müller <ulm@gentoo.org>2015-12-13 11:38:30 +0100
commit9582ebef5531828cf12a9c11397cb3c3a897b049 (patch)
tree53cc968df1825a187a5ae8f0f5bf403eeec5422b /sys-auth/otpcalc/otpcalc-0.97-r8.ebuild
parentsys-kernel/aufs-sources: Bump to latest genpatches and linux release (diff)
downloadgentoo-9582ebef5531828cf12a9c11397cb3c3a897b049.tar.gz
gentoo-9582ebef5531828cf12a9c11397cb3c3a897b049.tar.bz2
gentoo-9582ebef5531828cf12a9c11397cb3c3a897b049.zip
sys-auth/otpcalc: Fix installation of desktop entry file.
Package-Manager: portage-2.2.26
Diffstat (limited to 'sys-auth/otpcalc/otpcalc-0.97-r8.ebuild')
-rw-r--r--sys-auth/otpcalc/otpcalc-0.97-r8.ebuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/sys-auth/otpcalc/otpcalc-0.97-r8.ebuild b/sys-auth/otpcalc/otpcalc-0.97-r8.ebuild
new file mode 100644
index 000000000000..76c2de454282
--- /dev/null
+++ b/sys-auth/otpcalc/otpcalc-0.97-r8.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="A One Time Password and S/Key calculator for X"
+HOMEPAGE="http://killa.net/infosec/otpCalc/"
+SRC_URI="http://killa.net/infosec/otpCalc/otpCalc-${PV}.tar.gz
+ https://dev.gentoo.org/~ulm/distfiles/${P}-patches-1.tar.xz"
+
+LICENSE="GPL-2+" # bundled crypto functions are not used
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+
+RDEPEND="x11-libs/gtk+:2
+ dev-libs/openssl:0"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S="${WORKDIR}/otpCalc-${PV}"
+
+src_prepare() {
+ eapply ../patch
+ eapply_user
+
+ # override hardcoded FLAGS
+ sed -i \
+ -e 's:$(CC) $(CFLAGS) $^:$(CC) $(LDFLAGS) $(CFLAGS) $^:' \
+ -e "s#-s -O3#${CFLAGS}#g" \
+ Makefile.in || die
+
+ tc-export CC
+}
+
+src_compile() {
+ emake otpCalc otpCalc.1
+}
+
+src_install() {
+ dobin otpCalc
+ dosym otpCalc /usr/bin/otpcalc
+ doman otpCalc.1
+ newman - otpcalc.1 <<< ".so man1/otpCalc.1"
+ insinto /usr/share/applications
+ doins "${FILESDIR}/${PN}.desktop"
+ dodoc BUGS ChangeLog TODO
+}