|
|
| |
inherit multilib | inherit multilib |
| |
STUPID_NUM="2257" |
|
MY_P="${PN}-${PV/_/-}" |
|
DESCRIPTION="PC/SC Architecture smartcard middleware library" | DESCRIPTION="PC/SC Architecture smartcard middleware library" |
HOMEPAGE="http://www.linuxnet.com/middle.html" | HOMEPAGE="http://www.linuxnet.com/middle.html" |
SRC_URI="http://alioth.debian.org/download.php/${STUPID_NUM}/${MY_P}.tar.gz" |
|
|
if [[ "${PV}" = "9999" ]]; then |
|
inherit subversion autotools |
|
ESVN_REPO_URI="svn://svn.debian.org/pcsclite/trunk" |
|
S="${WORKDIR}/trunk" |
|
else |
|
STUPID_NUM="2479" |
|
MY_P="${PN}-${PV/_/-}" |
|
SRC_URI="http://alioth.debian.org/download.php/${STUPID_NUM}/${MY_P}.tar.gz" |
|
S="${WORKDIR}/${MY_P}" |
|
fi |
| |
LICENSE="as-is" | LICENSE="as-is" |
SLOT="0" | SLOT="0" |
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" | KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
IUSE="static debug" |
IUSE="static debug usb hal" |
| |
RDEPEND="!static? ( dev-libs/libusb )" |
RDEPEND="usb? ( dev-libs/libusb ) |
DEPEND="dev-libs/libusb |
hal? ( sys-apps/hal )" |
|
DEPEND="${RDEPEND} |
dev-util/pkgconfig" | dev-util/pkgconfig" |
| |
S="${WORKDIR}/${MY_P}" |
src_unpack() { |
|
if [ "${PV}" != "9999" ]; then |
|
unpack "${A}" |
|
cd "${S}" |
|
else |
|
subversion_src_unpack |
|
S="${WORKDIR}/trunk/PCSC" |
|
cd "${S}" |
|
AT_M4DIR="m4" eautoreconf |
|
fi |
|
} |
| |
src_compile() { | src_compile() { |
econf \ | econf \ |
|
|
--enable-usbdropdir="/usr/$(get_libdir)/readers/usb" \ | --enable-usbdropdir="/usr/$(get_libdir)/readers/usb" \ |
--enable-muscledropdir="/usr/share/pcsc/services" \ | --enable-muscledropdir="/usr/share/pcsc/services" \ |
--enable-runpid="/var/run/pcscd.pid" \ | --enable-runpid="/var/run/pcscd.pid" \ |
|
$(use_enable hal libhal) \ |
|
$(use_enable usb libusb) \ |
$(use_enable debug) \ | $(use_enable debug) \ |
$(use_enable static) \ | $(use_enable static) \ |
|| die "configure failed" | || die "configure failed" |
|
|
| |
src_install() { | src_install() { |
emake DESTDIR="${D}" install || die | emake DESTDIR="${D}" install || die |
|
prepalldocs |
| |
dodoc AUTHORS DRIVERS HELP README SECURITY ChangeLog | dodoc AUTHORS DRIVERS HELP README SECURITY ChangeLog |
prepalldocs |
|
| |
newinitd "${FILESDIR}/pcscd-init" pcscd | newinitd "${FILESDIR}/pcscd-init" pcscd |
newconfd "${FILESDIR}/pcscd-confd" pcscd | newconfd "${FILESDIR}/pcscd-confd" pcscd |
} | } |
|
|
pkg_postinst() { |
|
ewarn "You should run 'revdep-rebuild --library libpcsclite.so.0'" |
|
} |
|