|
Lines 4-25
Link Here
|
| 4 |
|
4 |
|
| 5 |
inherit multilib |
5 |
inherit multilib |
| 6 |
|
6 |
|
| 7 |
STUPID_NUM="2257" |
|
|
| 8 |
MY_P="${PN}-${PV/_/-}" |
| 9 |
DESCRIPTION="PC/SC Architecture smartcard middleware library" |
7 |
DESCRIPTION="PC/SC Architecture smartcard middleware library" |
| 10 |
HOMEPAGE="http://www.linuxnet.com/middle.html" |
8 |
HOMEPAGE="http://www.linuxnet.com/middle.html" |
| 11 |
SRC_URI="http://alioth.debian.org/download.php/${STUPID_NUM}/${MY_P}.tar.gz" |
9 |
|
|
|
10 |
if [[ "${PV}" = "9999" ]]; then |
| 11 |
inherit subversion autotools |
| 12 |
ESVN_REPO_URI="svn://svn.debian.org/pcsclite/trunk" |
| 13 |
S="${WORKDIR}/trunk" |
| 14 |
else |
| 15 |
STUPID_NUM="2479" |
| 16 |
MY_P="${PN}-${PV/_/-}" |
| 17 |
SRC_URI="http://alioth.debian.org/download.php/${STUPID_NUM}/${MY_P}.tar.gz" |
| 18 |
S="${WORKDIR}/${MY_P}" |
| 19 |
fi |
| 12 |
|
20 |
|
| 13 |
LICENSE="as-is" |
21 |
LICENSE="as-is" |
| 14 |
SLOT="0" |
22 |
SLOT="0" |
| 15 |
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
23 |
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
| 16 |
IUSE="static debug" |
24 |
IUSE="static debug usb hal" |
| 17 |
|
25 |
|
| 18 |
RDEPEND="!static? ( dev-libs/libusb )" |
26 |
RDEPEND="usb? ( dev-libs/libusb ) |
| 19 |
DEPEND="dev-libs/libusb |
27 |
hal? ( sys-apps/hal )" |
|
|
28 |
DEPEND="${RDEPEND} |
| 20 |
dev-util/pkgconfig" |
29 |
dev-util/pkgconfig" |
| 21 |
|
30 |
|
| 22 |
S="${WORKDIR}/${MY_P}" |
31 |
src_unpack() { |
|
|
32 |
if [ "${PV}" != "9999" ]; then |
| 33 |
unpack "${A}" |
| 34 |
cd "${S}" |
| 35 |
else |
| 36 |
subversion_src_unpack |
| 37 |
S="${WORKDIR}/trunk/PCSC" |
| 38 |
cd "${S}" |
| 39 |
AT_M4DIR="m4" eautoreconf |
| 40 |
fi |
| 41 |
} |
| 23 |
|
42 |
|
| 24 |
src_compile() { |
43 |
src_compile() { |
| 25 |
econf \ |
44 |
econf \ |
|
Lines 27-32
src_compile() {
Link Here
|
| 27 |
--enable-usbdropdir="/usr/$(get_libdir)/readers/usb" \ |
46 |
--enable-usbdropdir="/usr/$(get_libdir)/readers/usb" \ |
| 28 |
--enable-muscledropdir="/usr/share/pcsc/services" \ |
47 |
--enable-muscledropdir="/usr/share/pcsc/services" \ |
| 29 |
--enable-runpid="/var/run/pcscd.pid" \ |
48 |
--enable-runpid="/var/run/pcscd.pid" \ |
|
|
49 |
$(use_enable hal libhal) \ |
| 50 |
$(use_enable usb libusb) \ |
| 30 |
$(use_enable debug) \ |
51 |
$(use_enable debug) \ |
| 31 |
$(use_enable static) \ |
52 |
$(use_enable static) \ |
| 32 |
|| die "configure failed" |
53 |
|| die "configure failed" |
|
Lines 35-48
src_compile() {
Link Here
|
| 35 |
|
56 |
|
| 36 |
src_install() { |
57 |
src_install() { |
| 37 |
emake DESTDIR="${D}" install || die |
58 |
emake DESTDIR="${D}" install || die |
|
|
59 |
prepalldocs |
| 38 |
|
60 |
|
| 39 |
dodoc AUTHORS DRIVERS HELP README SECURITY ChangeLog |
61 |
dodoc AUTHORS DRIVERS HELP README SECURITY ChangeLog |
| 40 |
prepalldocs |
|
|
| 41 |
|
62 |
|
| 42 |
newinitd "${FILESDIR}/pcscd-init" pcscd |
63 |
newinitd "${FILESDIR}/pcscd-init" pcscd |
| 43 |
newconfd "${FILESDIR}/pcscd-confd" pcscd |
64 |
newconfd "${FILESDIR}/pcscd-confd" pcscd |
| 44 |
} |
65 |
} |
| 45 |
|
|
|
| 46 |
pkg_postinst() { |
| 47 |
ewarn "You should run 'revdep-rebuild --library libpcsclite.so.0'" |
| 48 |
} |