summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2010-07-27 00:52:41 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2010-07-27 00:52:41 +0000
commite55b78cbfde1aeef04fe8885ad1e4389299ca9f1 (patch)
tree1465fb8ed132a97852df8e96748dc28771de3254 /media-libs
parentAdding dev-python/pycrypto to RDEPEND (Bug #328233) (diff)
downloadgentoo-2-e55b78cbfde1aeef04fe8885ad1e4389299ca9f1.tar.gz
gentoo-2-e55b78cbfde1aeef04fe8885ad1e4389299ca9f1.tar.bz2
gentoo-2-e55b78cbfde1aeef04fe8885ad1e4389299ca9f1.zip
EAPI=2; add support for USE=static-libs
(Portage version: 2.1.8.3/cvs/Linux i686)
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/sdl-net/ChangeLog5
-rw-r--r--media-libs/sdl-net/sdl-net-1.2.7.ebuild15
2 files changed, 17 insertions, 3 deletions
diff --git a/media-libs/sdl-net/ChangeLog b/media-libs/sdl-net/ChangeLog
index 3bf7e94fe1f3..1fc47b9dd0a3 100644
--- a/media-libs/sdl-net/ChangeLog
+++ b/media-libs/sdl-net/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for media-libs/sdl-net
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-net/ChangeLog,v 1.36 2010/01/15 09:48:53 fauli Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-net/ChangeLog,v 1.37 2010/07/27 00:52:41 mr_bones_ Exp $
+
+ 27 Jul 2010; Michael Sterrett <mr_bones_@gentoo.org> sdl-net-1.2.7.ebuild:
+ EAPI=2; add support for USE=static-libs
15 Jan 2010; Christian Faulhammer <fauli@gentoo.org> sdl-net-1.2.7.ebuild:
Transfer Prefix keywords
diff --git a/media-libs/sdl-net/sdl-net-1.2.7.ebuild b/media-libs/sdl-net/sdl-net-1.2.7.ebuild
index 3ceef2844772..04c6fe0e4531 100644
--- a/media-libs/sdl-net/sdl-net-1.2.7.ebuild
+++ b/media-libs/sdl-net/sdl-net-1.2.7.ebuild
@@ -1,7 +1,8 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-net/sdl-net-1.2.7.ebuild,v 1.12 2010/01/15 09:48:53 fauli Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-net/sdl-net-1.2.7.ebuild,v 1.13 2010/07/27 00:52:41 mr_bones_ Exp $
+EAPI=2
MY_P=${P/sdl-/SDL_}
DESCRIPTION="Simple Direct Media Layer Network Support Library"
HOMEPAGE="http://www.libsdl.org/projects/SDL_net/index.html"
@@ -10,13 +11,23 @@ SRC_URI="http://www.libsdl.org/projects/SDL_net/release/${MY_P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
-IUSE=""
+IUSE="static-libs"
DEPEND=">=media-libs/libsdl-1.2.5"
S=${WORKDIR}/${MY_P}
+src_configure() {
+ econf \
+ --disable-dependency-tracking \
+ $(use_enable static-libs static)
+}
+
src_install() {
emake DESTDIR="${D}" install || die "make install failed"
dodoc CHANGES README
+ if ! use static-libs ; then
+ find "${D}" -type f -name '*.la' -exec rm {} + \
+ || die "la removal failed"
+ fi
}