Add support for USE=static-libs.
authorMike Frysinger <vapier@gentoo.org>
Mon, 26 Sep 2011 18:13:28 +0000 (18:13 +0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 26 Sep 2011 18:13:28 +0000 (18:13 +0000)
dev-embedded/libftdi/ChangeLog
dev-embedded/libftdi/libftdi-9999.1.0.ebuild
dev-embedded/libftdi/libftdi-9999.ebuild

index 9b46a204a2db8d9e2341cfe72535a03107555060..28c2b2faff79e91bd2f9781c023fa02fcbe353b4 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for dev-embedded/libftdi
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-embedded/libftdi/ChangeLog,v 1.54 2011/09/20 22:01:38 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/libftdi/ChangeLog,v 1.55 2011/09/26 18:13:28 vapier Exp $
+
+  26 Sep 2011; Mike Frysinger <vapier@gentoo.org> libftdi-9999.ebuild,
+  libftdi-9999.1.0.ebuild:
+  Add support for USE=static-libs.
 
   20 Sep 2011; Michał Górny <mgorny@gentoo.org> libftdi-9999.ebuild,
   libftdi-9999.1.0.ebuild:
index 47abb64acdf0a841b464b76fa8da962b41d1c34c..bf273ccf967b21d8fec3d65862caa02e9881c47c 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-embedded/libftdi/libftdi-9999.1.0.ebuild,v 1.3 2011/09/20 22:01:38 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/libftdi/libftdi-9999.1.0.ebuild,v 1.4 2011/09/26 18:13:28 vapier Exp $
 
 EAPI="2"
 
@@ -17,7 +17,7 @@ HOMEPAGE="http://www.intra2net.com/en/developer/libftdi/"
 
 LICENSE="LGPL-2"
 SLOT="0"
-IUSE="cxx doc examples python"
+IUSE="cxx doc examples python static-libs"
 
 RDEPEND="virtual/libusb:1
        cxx? ( dev-libs/boost )
@@ -38,11 +38,13 @@ src_configure() {
                $(use_enable cxx libftdipp) \
                $(use_with doc docs) \
                $(use_with examples) \
-               $(use_enable python python-binding)
+               $(use_enable python python-binding) \
+               $(use_enable static-libs static)
 }
 
 src_install() {
        emake DESTDIR="${D}" install || die
+       use static-libs || find "${D}" -name '*.la' -delete
        dodoc ChangeLog README
 
        if use doc ; then
index 813441cfc4ab286ea168237b8b8c7ec643b6ab38..4fb3777fe257888f4f17aaabbbb783f4c0f82f04 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-embedded/libftdi/libftdi-9999.ebuild,v 1.3 2011/09/20 22:01:38 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/libftdi/libftdi-9999.ebuild,v 1.4 2011/09/26 18:13:28 vapier Exp $
 
 EAPI="2"
 
@@ -17,7 +17,7 @@ HOMEPAGE="http://www.intra2net.com/en/developer/libftdi/"
 
 LICENSE="LGPL-2"
 SLOT="0"
-IUSE="cxx doc examples python"
+IUSE="cxx doc examples python static-libs"
 
 RDEPEND="virtual/libusb:0
        cxx? ( dev-libs/boost )
@@ -37,11 +37,13 @@ src_configure() {
                $(use_enable cxx libftdipp) \
                $(use_with doc docs) \
                $(use_with examples) \
-               $(use_enable python python-binding)
+               $(use_enable python python-binding) \
+               $(use_enable static-libs static)
 }
 
 src_install() {
        emake DESTDIR="${D}" install || die
+       use static-libs || find "${D}" -name '*.la' -delete
        dodoc ChangeLog README
 
        if use doc ; then