--- /var/gentoo/portage/sys-apps/pcsc-lite/pcsc-lite-1.4.99.ebuild 2008-01-09 15:26:54.000000000 +0200 +++ pcsc-lite-1.4.102.ebuild 2008-07-30 08:02:10.000000000 +0300 @@ -4,22 +4,41 @@ inherit multilib -STUPID_NUM="2257" -MY_P="${PN}-${PV/_/-}" DESCRIPTION="PC/SC Architecture smartcard middleware library" 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" SLOT="0" 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 )" -DEPEND="dev-libs/libusb +RDEPEND="usb? ( dev-libs/libusb ) + hal? ( sys-apps/hal )" +DEPEND="${RDEPEND} 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() { econf \ @@ -27,6 +46,8 @@ src_compile() { --enable-usbdropdir="/usr/$(get_libdir)/readers/usb" \ --enable-muscledropdir="/usr/share/pcsc/services" \ --enable-runpid="/var/run/pcscd.pid" \ + $(use_enable hal libhal) \ + $(use_enable usb libusb) \ $(use_enable debug) \ $(use_enable static) \ || die "configure failed" @@ -35,14 +56,10 @@ src_compile() { src_install() { emake DESTDIR="${D}" install || die + prepalldocs dodoc AUTHORS DRIVERS HELP README SECURITY ChangeLog - prepalldocs newinitd "${FILESDIR}/pcscd-init" pcscd newconfd "${FILESDIR}/pcscd-confd" pcscd } - -pkg_postinst() { - ewarn "You should run 'revdep-rebuild --library libpcsclite.so.0'" -}