Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-auth/bioapi: ChangeLog bioapi-1.2.3-r2.ebuild
Date: Sun, 08 Mar 2009 19:49:13
Message-Id: E1LgOzn-0004FM-AC@stork.gentoo.org
1 vapier 09/03/08 19:49:11
2
3 Modified: ChangeLog
4 Added: bioapi-1.2.3-r2.ebuild
5 Log:
6 Do not let mod_install delete symlinks as that is the job of portage.
7 (Portage version: 2.2_rc23/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.10 sys-auth/bioapi/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/bioapi/ChangeLog?rev=1.10&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/bioapi/ChangeLog?rev=1.10&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/bioapi/ChangeLog?r1=1.9&r2=1.10
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-auth/bioapi/ChangeLog,v
19 retrieving revision 1.9
20 retrieving revision 1.10
21 diff -u -r1.9 -r1.10
22 --- ChangeLog 26 Oct 2008 19:13:05 -0000 1.9
23 +++ ChangeLog 8 Mar 2009 19:49:11 -0000 1.10
24 @@ -1,6 +1,12 @@
25 # ChangeLog for sys-auth/bioapi
26 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-auth/bioapi/ChangeLog,v 1.9 2008/10/26 19:13:05 maekke Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/bioapi/ChangeLog,v 1.10 2009/03/08 19:49:11 vapier Exp $
30 +
31 +*bioapi-1.2.3-r2 (08 Mar 2009)
32 +
33 + 08 Mar 2009; Mike Frysinger <vapier@g.o>
34 + +files/bioapi-1.2.3-no-delete.patch, +bioapi-1.2.3-r2.ebuild:
35 + Do not let mod_install delete symlinks as that is the job of portage.
36
37 26 Oct 2008; Markus Meier <maekke@g.o> bioapi-1.2.3-r1.ebuild:
38 amd64/x86 stable, bug #244447
39
40
41
42 1.1 sys-auth/bioapi/bioapi-1.2.3-r2.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/bioapi/bioapi-1.2.3-r2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/bioapi/bioapi-1.2.3-r2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: bioapi-1.2.3-r2.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-auth/bioapi/bioapi-1.2.3-r2.ebuild,v 1.1 2009/03/08 19:49:11 vapier Exp $
52
53 inherit eutils multilib
54
55 DESCRIPTION="Framework for biometric-based authentication"
56 HOMEPAGE="http://code.google.com/p/bioapi-linux/"
57 SRC_URI="http://bioapi-linux.googlecode.com/files/${PN}_${PV}.tar.gz"
58
59 LICENSE="bioapi"
60 SLOT="0"
61 KEYWORDS="~amd64 ~x86"
62 IUSE="qt3"
63
64 DEPEND="qt3? ( =x11-libs/qt-3* )"
65
66 S=${WORKDIR}/bioapi-linux
67
68 src_unpack() {
69 unpack ${A}
70 cd "${S}"
71 epatch "${FILESDIR}"/${P}-enroll-ret.patch #236654
72 epatch "${FILESDIR}"/${P}-no-delete.patch
73 }
74
75 src_compile() {
76 econf $(use_with qt3 Qt-dir /usr/qt/3) || die "./configure failed"
77 emake || die "emake failed"
78 }
79
80 src_install() {
81 emake SKIPCONFIG=true DESTDIR="${D}" install || die "install failed"
82 dodoc README
83 dohtml *.htm
84
85 # rename generic binaries
86 mv "${D}"/usr/bin/{,BioAPI}Sample || die
87 if use qt3 ; then
88 mv "${D}"/usr/bin/{,BioAPI}QSample || die
89 fi
90 }
91
92 pkg_config() {
93 mds_install -s /usr/$(get_libdir)
94 mod_install -fi /usr/$(get_libdir)/libbioapi100.so
95 mod_install -fi /usr/$(get_libdir)/libbioapi_dummy100.so
96 mod_install -fi /usr/$(get_libdir)/libpwbsp.so
97 use qt3 && mod_install -fi /usr/$(get_libdir)/libqtpwbsp.so
98 }
99
100 pkg_preinst() {
101 if [[ -e ${ROOT}/var/bioapi ]] && [[ ! -e ${ROOT}/var/lib/bioapi ]] ; then
102 einfo "Moving /var/bioapi to /var/lib/bioapi"
103 dodir /var/lib
104 mv "${ROOT}"/var/bioapi "${ROOT}"/var/lib/bioapi
105 fi
106 }
107
108 pkg_postinst() {
109 einfo "Some generic-named programs have been renamed:"
110 einfo " Sample -> BioAPISample"
111 einfo " QSample -> BioAPIQSample"
112
113 if [[ ${ROOT} == "/" ]] ; then
114 pkg_config
115 else
116 ewarn "You will need to run 'emerge --config bioapi' before"
117 ewarn " you can use bioapi properly."
118 fi
119
120 # XXX: this can't be correct ...
121 enewgroup bioapi
122 chgrp bioapi "${ROOT}"/var/lib/bioapi -R
123 chmod g+w,o= "${ROOT}"/var/lib/bioapi -R
124 einfo "Note: users using bioapi must be in group bioapi."
125 }
126
127 pkg_prerm() {
128 mod_install -fu libbioapi100.so
129 mod_install -fu libbioapi_dummy100.so
130 mod_install -fu libpwbsp.so
131 use qt3 && mod_install -fu libqtpwbsp.so
132 }