diff options
author | Mike Frysinger <vapier@gentoo.org> | 2014-06-14 02:47:43 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2014-06-14 02:47:43 +0000 |
commit | a0925fdb3a7fbb7972ddb972d4016edcb5b528ba (patch) | |
tree | e36d4cf7ced77eb7640ea8f2ce2c052b06daa4dd /sci-libs | |
parent | Add ~x86 keyword, tested by Arfrever. (diff) | |
download | historical-a0925fdb3a7fbb7972ddb972d4016edcb5b528ba.tar.gz historical-a0925fdb3a7fbb7972ddb972d4016edcb5b528ba.tar.bz2 historical-a0925fdb3a7fbb7972ddb972d4016edcb5b528ba.zip |
Initial ebuild #426586.
Package-Manager: portage-2.2.10/cvs/Linux x86_64
Manifest-Sign-Key: 0xD2E96200
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/libsigrok/ChangeLog | 12 | ||||
-rw-r--r-- | sci-libs/libsigrok/Manifest | 27 | ||||
-rw-r--r-- | sci-libs/libsigrok/files/libsigrok-0.3.0-configure-flags.patch | 169 | ||||
-rw-r--r-- | sci-libs/libsigrok/files/libsigrok-0.3.0-no-check-linkage.patch | 30 | ||||
-rw-r--r-- | sci-libs/libsigrok/libsigrok-0.3.0.ebuild | 65 | ||||
-rw-r--r-- | sci-libs/libsigrok/libsigrok-9999.ebuild | 63 | ||||
-rw-r--r-- | sci-libs/libsigrok/metadata.xml | 9 |
7 files changed, 375 insertions, 0 deletions
diff --git a/sci-libs/libsigrok/ChangeLog b/sci-libs/libsigrok/ChangeLog new file mode 100644 index 000000000000..f63e05506cb2 --- /dev/null +++ b/sci-libs/libsigrok/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for sci-libs/libsigrok +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/libsigrok/ChangeLog,v 1.1 2014/06/14 02:47:41 vapier Exp $ + +*libsigrok-0.3.0 (14 Jun 2014) +*libsigrok-9999 (14 Jun 2014) + + 14 Jun 2014; Mike Frysinger <vapier@gentoo.org> + +files/libsigrok-0.3.0-configure-flags.patch, + +files/libsigrok-0.3.0-no-check-linkage.patch, +libsigrok-0.3.0.ebuild, + +libsigrok-9999.ebuild, +metadata.xml: + Initial ebuild #426586. diff --git a/sci-libs/libsigrok/Manifest b/sci-libs/libsigrok/Manifest new file mode 100644 index 000000000000..14f9aecf2c13 --- /dev/null +++ b/sci-libs/libsigrok/Manifest @@ -0,0 +1,27 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX libsigrok-0.3.0-configure-flags.patch 6291 SHA256 f33627bb98ac855377f20079bd11e3dc067dcb9b15d8b75d455db8729372bf4d SHA512 a7df284a3598dada9ddd63c7fe84b99fdec11a36724656c444a9deb80d0e29c633d85166d926279f3870d800b07816b50198c285a985304041134ad0c84f89c1 WHIRLPOOL 0b12268dd36719fe279478d02e035794551ea900f74ce68898fefa7db07ae507f5c6a8c02eb6a15a82f661b485f0c4f857f0340896b741c3dc50c4bdacd02c0f +AUX libsigrok-0.3.0-no-check-linkage.patch 980 SHA256 3b37d96b0800fbf3da35697c0b504f1bafafeaa1028eaafdda0372f8d1fa6b96 SHA512 45d31733c9942cedd916819baa842ae9b68de7ac9f7fc5d440f93d5eb2ea13975c3a4ac7116d80d669c7f942f5342e616da208b83a98ea005fe6a62fab3db373 WHIRLPOOL 44b41cf0f0d6ed0213954fae51c93094ff886a9c29e6b287c31c92bafe66104f9264aab7a0ea517de512e08c427ec307d21f8e964f833ab065e990dc24bba473 +DIST libsigrok-0.3.0.tar.gz 924503 SHA256 43926907a06f1d7aa73c68ae379d66412ac2728483eed7d20a8cf061f73f7050 SHA512 b94e8a8da1346f9ab267fd693975411243f2cb016e48ec05f4ad88a8a1dfe5ed6f5ad4ac4bf0e94dc551dc92cd70d2719983e21abaa4811693fb28a27bf74550 WHIRLPOOL 709b1e7fd0b3f864129ade9d91cc072cf72675bc10ec053e71cd0e7ce18442d405dc8ab5d435ac59694360a2be4f5a9a2ceb559dd3e6c7a7736dafa7a04ccae7 +EBUILD libsigrok-0.3.0.ebuild 1799 SHA256 410b20b7da8df89efe0df3cdb5b33b7e9369e251f862953c4e38fb22178b3ed8 SHA512 ba57cd6c70a6395382404d7601c1510da5e96d74031fd9e5385846e87089d67b5b796cc054bd84ee2a4923ed532848b57c488e36638bd7d35ec1c7cc24497eab WHIRLPOOL 7d93cb83984b6f19f9d0ff99c325efd57f0381f9dd733c8a2b673af4b85ddb746fa1f776aa2430005edef2eb36be719fa92c7098bca0737850399a0b592b6cbc +EBUILD libsigrok-9999.ebuild 1710 SHA256 fbcdfa8849a926000f9a415ac30e33748814956a2003812eafdbaa80bd95eddb SHA512 90c0fb5a031c9d656224167780d4dbeeae5f1e030dfd26d70bc495fd2ce6e2b98be398134e43ce34dd3f43bc0057bf7f86d1680c0a2be8bd18cd73c0c42e0b08 WHIRLPOOL 30873fb094f97fa7b554270a93f440ee4e58a459ffe2f40b2cfbedcb03d28001f3f72a0f80d2a8871cbb73ce4423d56916ce22bb2ab236b9577f5f2874b58f4d +MISC ChangeLog 510 SHA256 12c8aecda276b1680df0782de0f7aeb1acf1972f8d29392aa9518fa83beeaf68 SHA512 40858d1e751429cf2e2a2fe1e492d9b8632c40f36471f10086b5164bc9af56811108357092dd98de36d44f6fcaed9ee52a7e30836cb39a73ce32db4e1580ac7c WHIRLPOOL f9675098d2973a2fb2c4f9f8a2c4fb4c99a97914208363209f478dea36e531c11c7bd380b405acfeec40bfffe0cad66c7560daccbf9a6be34b521c3a472b38a3 +MISC metadata.xml 310 SHA256 6dac48be8b613ee8d48c24ef1cc81e9bdc1bbedb9685ebe31b7d5ef17e02a98d SHA512 77b0eedd71b06380b31d9f489cc456cd48854cbe4bc868a75065768f1922b6120d3b8de5d48dc77de25b00a7c2ce7db4baeebf0b35fff0d99c5ed5af693c5c90 WHIRLPOOL e37ff597314c8631a31bec310c2051e1ef1c21be07e33dd013a7494a5518c26df377298dc93fb4942292ee7c4cb6abc432c3d1ef4d3c8ee9b7701193d467f0ef +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2 + +iQIcBAEBCAAGBQJTm7fUAAoJEPGu1DbS6WIA2gwP/jtVn3+GSKKuKIwjyIPuVVWl +PMY37hZxHeWqZc+k+S+8F9LCdV66QGy8AbGZmzvV8WJfAtfQy6EMfXLSMsqnM/wR +JStbvgppkKxND8aT6vD9oNt6reM9b2Di/wBC9cU9Gz8ibBIBgOER6yC6s5eQzJi9 +1T4J9OhHCuQ1ld8OoXkK+/Pxos4UDBHfLaSvTBZc0O7UKIw9gxgH0oJtnQhoIBxx +5Ve0bZEfrRL666xnUwfUD9CpPWh5D1V2pn6l1fddbiUrqUceYJsSMg+EIEYd2e28 +mVoDZLC8bMWTwxnpifTdx3p96dvvJDXk4xNUUwue5QRxMQiNqzqu+tNdLb61wqUK +QAzSc4t7lBJ+IUtiOL7l2FldeJie7xyzCAZOAdV0xit8/MTY2WWBRgCEHTCcOSIn +/t7xnigo7qGz1XBgZ+B/EGMKlbmmvAd1v5eMA7aEIaOyiqRgihVaMJf5OPpPFYk4 +ADBFOvjT+1tAf/v9ipk7GkTVUFtFynBEUS2ZosXsDoQULSu+6sU4juPNzs+17nO/ +SUQiDy7Q5M/A8TpGclSGVs9KwP6knKqD1Zr+ch9jYHs2TsKFyI8Aa06Ok4gs6hHo +klw9SVO/5T6bk/w9uUXRDcsEpvwGf8mh9MNEdrXfyFuJFH+PXUfGobcAQGYoBG8f +lLa8wm0H/wvdobGDtdWK +=uxBX +-----END PGP SIGNATURE----- diff --git a/sci-libs/libsigrok/files/libsigrok-0.3.0-configure-flags.patch b/sci-libs/libsigrok/files/libsigrok-0.3.0-configure-flags.patch new file mode 100644 index 000000000000..16e13349360c --- /dev/null +++ b/sci-libs/libsigrok/files/libsigrok-0.3.0-configure-flags.patch @@ -0,0 +1,169 @@ +https://sourceforge.net/p/sigrok/mailman/message/32459490/ + +From de8690fe8aad81f963f14cf1bd7d6e7013d9d747 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Fri, 13 Jun 2014 19:09:35 -0400 +Subject: [PATCH] add explicit configure flags for ftdi/serial/usb libraries + +This makes it a lot easier for distros to control this functionality. +--- + configure.ac | 118 +++++++++++++++++++++++++++++++++++++++-------------------- + 1 file changed, 79 insertions(+), 39 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 496bc7a..f23e630 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -261,6 +261,18 @@ AC_ARG_ENABLE(zeroplus-logic-cube, + [HW_ZEROPLUS_LOGIC_CUBE="$enableval"], + [HW_ZEROPLUS_LOGIC_CUBE=$HW_ENABLED_DEFAULT]) + ++AC_ARG_ENABLE(libserialport, ++ AC_HELP_STRING([--disable-libserialport], ++ [disable libserialport support [default=detect]])) ++ ++AC_ARG_ENABLE(libftdi, ++ AC_HELP_STRING([--disable-libftdi], ++ [disable libftdi support [default=detect]])) ++ ++AC_ARG_ENABLE(libusb, ++ AC_HELP_STRING([--disable-libusb], ++ [disable libusb support [default=detect]])) ++ + # Checks for libraries. + + case "$host" in +@@ -302,19 +314,28 @@ PKG_CHECK_MODULES([libzip], [libzip >= 0.10], + + # libserialport is only needed for some hardware drivers. Disable the + # respective drivers if it is not found. +-PKG_CHECK_MODULES([libserialport], [libserialport >= 0.1.0], +- [have_libserialport="yes"; LIB_CFLAGS="$LIB_CFLAGS $libserialport_CFLAGS"; +- LIBS="$LIBS $libserialport_LIBS"; +- SR_PKGLIBS="$SR_PKGLIBS libserialport"], +- [have_libserialport="no"; HW_AGILENT_DMM="no"; HW_APPA_55II="no"; ++if test "x$enable_libserialport" != "xno"; then ++ PKG_CHECK_MODULES([libserialport], [libserialport >= 0.1.0], ++ [have_libserialport="yes"; LIB_CFLAGS="$LIB_CFLAGS $libserialport_CFLAGS"; ++ LIBS="$LIBS $libserialport_LIBS"; ++ SR_PKGLIBS="$SR_PKGLIBS libserialport"], ++ [have_libserialport="no"]) ++ if test "x$enable_libserialport$have_libserialport" = "xyesno"; then ++ AC_MSG_ERROR([libserialport support requested, but it was not found]) ++ fi ++else ++ have_libserialport="no" ++fi ++ ++# Define HAVE_LIBSERIALPORT in config.h if we found libserialport. ++if test "x$have_libserialport" = "xno"; then ++ HW_AGILENT_DMM="no"; HW_APPA_55II="no"; + HW_ATTEN_PPS3XXX="no"; HW_BRYMEN_DMM="no"; HW_CEM_DT_885X="no"; + HW_CENTER_3XX="no"; HW_COLEAD_SLM="no"; HW_CONRAD_DIGI_35_CPU="no"; + HW_FLUKE_DMM="no"; HW_GMC_MH_1X_2X="no"; HW_HAMEG_HMO="no"; + HW_MIC_985XX="no"; HW_NORMA_DMM="no"; HW_OLS="no"; +- HW_SERIAL_DMM="no"; HW_TELEINFO="no"; HW_TONDAJ_SL_814="no"]) +- +-# Define HAVE_LIBSERIALPORT in config.h if we found libserialport. +-if test "x$have_libserialport" != "xno"; then ++ HW_SERIAL_DMM="no"; HW_TELEINFO="no"; HW_TONDAJ_SL_814="no"; ++else + AC_DEFINE_UNQUOTED(HAVE_LIBSERIALPORT, [1], + [Specifies whether we have libserialport.]) + fi +@@ -340,43 +361,62 @@ fi + + # libusb-1.0 is only needed for some hardware drivers. Disable the respective + # drivers if it is not found. +-case "$host" in +-*freebsd*) +- # FreeBSD comes with an "integrated" libusb-1.0-style USB API. +- # This means libusb-1.0 is always available, no need to check for it, +- # and no need to (potentially) disable any drivers if it's not found. ++if test "x$enable_libusb" != "xno"; then ++ case "$host" in ++ *freebsd*) ++ # FreeBSD comes with an "integrated" libusb-1.0-style USB API. ++ # This means libusb-1.0 is always available, no need to check for it, ++ # and no need to (potentially) disable any drivers if it's not found. ++ have_libusb1_0="yes" ++ ;; ++ *) ++ PKG_CHECK_MODULES([libusb], [libusb-1.0 >= 1.0.16], ++ [have_libusb1_0="yes"; LIB_CFLAGS="$LIB_CFLAGS $libusb_CFLAGS"; ++ LIBS="$LIBS $libusb_LIBS"; ++ SR_PKGLIBS="$SR_PKGLIBS libusb-1.0"], ++ [have_libusb1_0="no"]) ++ if test "x$enable_libusb$have_libusb1_0" = "xyesno"; then ++ AC_MSG_ERROR([libusb support requested, but it was not found]) ++ fi ++ ;; ++ esac ++else ++ have_libusb1_0="no" ++fi ++ ++# Define HAVE_LIBUSB_1_0 in config.h if we found libusb-1.0. ++if test "x$have_libusb1_0" = "xno"; then ++ HW_BRYMEN_BM86X="no"; HW_FX2LAFW="no"; ++ HW_HANTEK_DSO="no"; HW_IKALOGIC_SCANALOGIC2="no"; ++ HW_KECHENG_KC_330B="no"; HW_LASCAR_EL_USB="no"; ++ HW_SYSCLK_LWLA="no"; HW_UNI_T_DMM="no"; ++ HW_UNI_T_UT32X="no"; HW_VICTOR_DMM="no"; ++ HW_ZEROPLUS_LOGIC_CUBE="no"; HW_SALEAE_LOGIC16="no"; ++else + AC_DEFINE_UNQUOTED(HAVE_LIBUSB_1_0, [1], + [Specifies whether we have a libusb.h header.]) +- ;; +-*) +- PKG_CHECK_MODULES([libusb], [libusb-1.0 >= 1.0.16], +- [have_libusb1_0="yes"; LIB_CFLAGS="$LIB_CFLAGS $libusb_CFLAGS"; +- LIBS="$LIBS $libusb_LIBS"; +- SR_PKGLIBS="$SR_PKGLIBS libusb-1.0"], +- [have_libusb1_0="no"; HW_BRYMEN_BM86X="no"; HW_FX2LAFW="no"; +- HW_HANTEK_DSO="no"; HW_IKALOGIC_SCANALOGIC2="no"; +- HW_KECHENG_KC_330B="no"; HW_LASCAR_EL_USB="no"; +- HW_SYSCLK_LWLA="no"; HW_UNI_T_DMM="no"; +- HW_UNI_T_UT32X="no"; HW_VICTOR_DMM="no"; +- HW_ZEROPLUS_LOGIC_CUBE="no"; HW_SALEAE_LOGIC16="no"]) +- +- # Define HAVE_LIBUSB_1_0 in config.h if we found libusb-1.0. +- if test "x$have_libusb1_0" != "xno"; then +- AC_DEFINE_UNQUOTED(HAVE_LIBUSB_1_0, [1], +- [Specifies whether we have a libusb.h header.]) +- fi +- ;; +-esac ++fi + + # USB + FX2 firmware helper code is only compiled in if libusb-1.0 was found. + AM_CONDITIONAL(NEED_USB, test "x$have_libusb1_0" != xno) + + # libftdi is only needed for some hardware drivers. Disable them if not found. +-PKG_CHECK_MODULES([libftdi], [libftdi >= 0.16], +- [LIB_CFLAGS="$LIB_CFLAGS $libftdi_CFLAGS"; +- LIBS="$LIBS $libftdi_LIBS"; +- SR_PKGLIBS="$SR_PKGLIBS libftdi"], +- [HW_ASIX_SIGMA="no"; HW_CHRONOVU_LA="no"; HW_IKALOGIC_SCANAPLUS="no"]) ++if test "x$enable_libftdi" != "xno"; then ++ PKG_CHECK_MODULES([libftdi], [libftdi >= 0.16], ++ [have_libftdi="yes"; LIB_CFLAGS="$LIB_CFLAGS $libftdi_CFLAGS"; ++ LIBS="$LIBS $libftdi_LIBS"; ++ SR_PKGLIBS="$SR_PKGLIBS libftdi"], ++ [have_libftdi="no"]) ++ if test "x$enable_libftdi$have_libftdi" = "xyesno"; then ++ AC_MSG_ERROR([libftdi support requested, but it was not found]) ++ fi ++else ++ have_libftdi="no" ++fi ++ ++if test "x$have_libftdi" = "xno"; then ++ HW_ASIX_SIGMA="no"; HW_CHRONOVU_LA="no"; HW_IKALOGIC_SCANAPLUS="no"; ++fi + + # The Check unit testing framework is optional. Disable if not found. + PKG_CHECK_MODULES([check], [check >= 0.9.4], +-- +2.0.0 + diff --git a/sci-libs/libsigrok/files/libsigrok-0.3.0-no-check-linkage.patch b/sci-libs/libsigrok/files/libsigrok-0.3.0-no-check-linkage.patch new file mode 100644 index 000000000000..f638c47b196e --- /dev/null +++ b/sci-libs/libsigrok/files/libsigrok-0.3.0-no-check-linkage.patch @@ -0,0 +1,30 @@ +https://sourceforge.net/p/sigrok/mailman/message/32459488/ + +From 5326833697a73826babb6a43c74112da7368d2d6 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Fri, 13 Jun 2014 21:17:23 -0400 +Subject: [PATCH] do not add check to common cflags/libs + +Only the unittests use these flags, so don't go linking them in for +the main library too. +--- + configure.ac | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/configure.ac b/configure.ac +index f23e630..d0654f1 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -420,8 +420,7 @@ fi + + # The Check unit testing framework is optional. Disable if not found. + PKG_CHECK_MODULES([check], [check >= 0.9.4], +- [have_check="yes"; LIB_CFLAGS="$LIB_CFLAGS $check_CFLAGS"; +- LIBS="$LIBS $check_LIBS"], [have_check="no"]) ++ [have_check="yes"], [have_check="no"]) + AM_CONDITIONAL(HAVE_CHECK, test x"$have_check" = "xyes") + + # The OLS driver uses serial port file descriptors directly, and therefore +-- +2.0.0 + diff --git a/sci-libs/libsigrok/libsigrok-0.3.0.ebuild b/sci-libs/libsigrok/libsigrok-0.3.0.ebuild new file mode 100644 index 000000000000..5bae43870f9d --- /dev/null +++ b/sci-libs/libsigrok/libsigrok-0.3.0.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/libsigrok/libsigrok-0.3.0.ebuild,v 1.1 2014/06/14 02:47:41 vapier Exp $ + +EAPI="5" + +inherit eutils autotools + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="git://sigrok.org/${PN}" + inherit git-2 autotools +else + SRC_URI="http://sigrok.org/download/source/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="provide basic hardware drivers for logic analyzers and input/output file format support" +HOMEPAGE="http://sigrok.org/" + +LICENSE="GPL-3" +SLOT="0" +IUSE="ftdi serial static-libs test usb" + +# We also support librevisa, but that isn't in the tree ... +LIB_DEPEND=">=dev-libs/glib-2.32.0[static-libs(+)] + >=dev-libs/libzip-0.8[static-libs(+)] + ftdi? ( >=dev-embedded/libftdi-0.16[static-libs(+)] ) + serial? ( dev-libs/libserialport[static-libs(+)] ) + usb? ( virtual/libusb:1[static-libs(+)] )" +RDEPEND="!static-libs? ( ${LIB_DEPEND//\[static-libs(+)]} ) + static-libs? ( ${LIB_DEPEND} )" +DEPEND="${LIB_DEPEND//\[static-libs(+)]} + test? ( >=dev-libs/check-0.9.4 ) + virtual/pkgconfig" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.3.0-configure-flags.patch + epatch "${FILESDIR}"/${PN}-0.3.0-no-check-linkage.patch + eautoreconf + + # Deal with libftdi-0.x & libftdi-1.x changes. + if has_version '>=dev-embedded/libftdi-1' ; then + sed -i 's:libftdi >= 0.16:libftdi1 >= 0.16:g' configure || die + fi + + # Fix implicit decl w/usleep. + sed -i '1i#include <unistd.h>' hardware/asix-sigma/asix-sigma.c || die +} + +src_configure() { + econf \ + $(use_enable ftdi libftdi) \ + $(use_enable serial libserialport) \ + $(use_enable usb libusb) \ + $(use_enable static-libs static) +} + +src_test() { + emake check +} + +src_install() { + default + prune_libtool_files +} diff --git a/sci-libs/libsigrok/libsigrok-9999.ebuild b/sci-libs/libsigrok/libsigrok-9999.ebuild new file mode 100644 index 000000000000..1b7e3b5fbbcc --- /dev/null +++ b/sci-libs/libsigrok/libsigrok-9999.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/libsigrok/libsigrok-9999.ebuild,v 1.1 2014/06/14 02:47:41 vapier Exp $ + +EAPI="5" + +inherit eutils autotools + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="git://sigrok.org/${PN}" + inherit git-2 autotools +else + SRC_URI="http://sigrok.org/download/source/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="provide basic hardware drivers for logic analyzers and input/output file format support" +HOMEPAGE="http://sigrok.org/" + +LICENSE="GPL-3" +SLOT="0" +IUSE="ftdi serial static-libs test usb" + +# We also support librevisa, but that isn't in the tree ... +LIB_DEPEND=">=dev-libs/glib-2.32.0[static-libs(+)] + >=dev-libs/libzip-0.8[static-libs(+)] + ftdi? ( >=dev-embedded/libftdi-0.16[static-libs(+)] ) + serial? ( dev-libs/libserialport[static-libs(+)] ) + usb? ( virtual/libusb:1[static-libs(+)] )" +RDEPEND="!static-libs? ( ${LIB_DEPEND//\[static-libs(+)]} ) + static-libs? ( ${LIB_DEPEND} )" +DEPEND="${LIB_DEPEND//\[static-libs(+)]} + test? ( >=dev-libs/check-0.9.4 ) + virtual/pkgconfig" + +src_prepare() { + [[ ${PV} == "9999" ]] && eautoreconf + + # Deal with libftdi-0.x & libftdi-1.x changes. + if has_version '>=dev-embedded/libftdi-1' ; then + sed -i 's:libftdi >= 0.16:libftdi1 >= 0.16:g' configure || die + fi + + # Fix implicit decl w/usleep. + sed -i '1i#include <unistd.h>' hardware/asix-sigma/asix-sigma.c || die +} + +src_configure() { + econf \ + $(use_enable ftdi libftdi) \ + $(use_enable serial libserialport) \ + $(use_enable usb libusb) \ + $(use_enable static-libs static) +} + +src_test() { + emake check +} + +src_install() { + default + prune_libtool_files +} diff --git a/sci-libs/libsigrok/metadata.xml b/sci-libs/libsigrok/metadata.xml new file mode 100644 index 000000000000..9b40b4fbcc3b --- /dev/null +++ b/sci-libs/libsigrok/metadata.xml @@ -0,0 +1,9 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>dev-embedded</herd> +<use> + <flag name='ftdi'>Enable drivers that need libftdi</flag> + <flag name='serial'>Enable drivers that are serial (RS232) based</flag> +</use> +</pkgmetadata> |