Fix linking with --as-needed.
authorSamuli Suominen <ssuominen@gentoo.org>
Mon, 26 Mar 2007 21:29:32 +0000 (21:29 +0000)
committerSamuli Suominen <ssuominen@gentoo.org>
Mon, 26 Mar 2007 21:29:32 +0000 (21:29 +0000)
Package-Manager: portage-2.1.2.2

games-sports/toycars/ChangeLog
games-sports/toycars/Manifest
games-sports/toycars/files/toycars-0.3.2-asneeded.patch [new file with mode: 0644]
games-sports/toycars/toycars-0.3.2.ebuild

index c53467da47b30ddecfabd2784923995fdf16b83b..9450f03ed5df5896a9b9cca48c5f24fb4750c6f7 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for games-sports/toycars
 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-sports/toycars/ChangeLog,v 1.2 2007/03/26 20:54:20 tupone Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-sports/toycars/ChangeLog,v 1.3 2007/03/26 21:29:32 drac Exp $
+
+  26 Mar 2007; Samuli Suominen <drac@gentoo.org>
+  +files/toycars-0.3.2-asneeded.patch, toycars-0.3.2.ebuild:
+  Fix linking with -Wl,--as-needed.
 
   26 Mar 2007; <tupone@gentoo.org> toycars-0.3.2.ebuild:
   Added keyword ~x86. Bug #172262 by Will Briggs
index 5da791f1542ba481b5c69f92ddb3756588bc5253..d55b96d7cbe45afc4727423e84e346ee8f60df23 100644 (file)
@@ -1,15 +1,16 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
+AUX toycars-0.3.2-asneeded.patch 503 RMD160 bc9fd97e6c5937f0de96c2fb70cfc725d008b45e SHA1 96d81d68a29216da6b0ff523e2398ca5a274c487 SHA256 5be5d425a9de60273ce8d9dca6f4c7bca3df17f12b86bc492141c0e10f828701
+MD5 09db7cadf42932937687c0c68d757902 files/toycars-0.3.2-asneeded.patch 503
+RMD160 bc9fd97e6c5937f0de96c2fb70cfc725d008b45e files/toycars-0.3.2-asneeded.patch 503
+SHA256 5be5d425a9de60273ce8d9dca6f4c7bca3df17f12b86bc492141c0e10f828701 files/toycars-0.3.2-asneeded.patch 503
 DIST toycars-0.3.2.tar.gz 5042224 RMD160 77e03965c42ed5e069c92f08da96e0c72c4b8510 SHA1 6de82fa30522492e3359ed0465977d5d6723e88d SHA256 46ca7231510eb3d8318933af93999d2ef3d762ae6e6d9db05287d59a70e14211
-EBUILD toycars-0.3.2.ebuild 783 RMD160 42232e4744db72abcc92bc3250d1814f84286be9 SHA1 2ed8116cc6962a605a8ea1cc858d75c5f62d5f05 SHA256 5e329ed797eee8419d88daad0895e91696a6a51f4152d1945ea3119a9f0f1ea4
-MD5 8426a3086c3343370a35e50cb01b9870 toycars-0.3.2.ebuild 783
-RMD160 42232e4744db72abcc92bc3250d1814f84286be9 toycars-0.3.2.ebuild 783
-SHA256 5e329ed797eee8419d88daad0895e91696a6a51f4152d1945ea3119a9f0f1ea4 toycars-0.3.2.ebuild 783
-MISC ChangeLog 479 RMD160 9ae640833db26f7c0badb7523a1dd1c190dbb7f7 SHA1 fe5cff591c24110403c56ee7a08d18b387f7296d SHA256 beb60eb76f839edba44a901de544db592623ccedf49c3bb5617e865d5111d252
-MD5 7823727a9108a2b23792bb0013cb9ba8 ChangeLog 479
-RMD160 9ae640833db26f7c0badb7523a1dd1c190dbb7f7 ChangeLog 479
-SHA256 beb60eb76f839edba44a901de544db592623ccedf49c3bb5617e865d5111d252 ChangeLog 479
+EBUILD toycars-0.3.2.ebuild 914 RMD160 b59854c95c4a5f19c1cee0d5a3e8d7a4f4db2d07 SHA1 2d286ca8c95fd27e0c7019ecb3ebd1ebe2dab6a3 SHA256 0154a523ed770a9dc29615cccbb9a12dd0e2061aa1fb056511790e8e8ece8192
+MD5 e9a8d4302b3b700056f180ed490b3b6f toycars-0.3.2.ebuild 914
+RMD160 b59854c95c4a5f19c1cee0d5a3e8d7a4f4db2d07 toycars-0.3.2.ebuild 914
+SHA256 0154a523ed770a9dc29615cccbb9a12dd0e2061aa1fb056511790e8e8ece8192 toycars-0.3.2.ebuild 914
+MISC ChangeLog 624 RMD160 c0f801b2c20a12465a8cba9e29fe6cc4cb121ece SHA1 c50ce8143dd99845921ad9ad4a35a3c53f2b95fd SHA256 c3b83de3dd0f7451f220d340380bad02a14e2ee48d6f24f493991334cca01030
+MD5 c1b16d9ebbd6f9fde5cf77918721e49c ChangeLog 624
+RMD160 c0f801b2c20a12465a8cba9e29fe6cc4cb121ece ChangeLog 624
+SHA256 c3b83de3dd0f7451f220d340380bad02a14e2ee48d6f24f493991334cca01030 ChangeLog 624
 MISC metadata.xml 592 RMD160 22f227feb81d3d4aac659471c21dec61af220b46 SHA1 484057930ea56def340f4d0d322b1703c8de2074 SHA256 9ebc59b9b09bb528703fa1886257d647fbe8a1266b7256ca28ff4daa19094e80
 MD5 19bacffdcc0d152844cec50266890f8b metadata.xml 592
 RMD160 22f227feb81d3d4aac659471c21dec61af220b46 metadata.xml 592
@@ -17,10 +18,3 @@ SHA256 9ebc59b9b09bb528703fa1886257d647fbe8a1266b7256ca28ff4daa19094e80 metadata
 MD5 e9a018b20e73c59dde25988574dc2adc files/digest-toycars-0.3.2 244
 RMD160 33a0b4c07c4d65fa662cb18ba986079ee2f5b03a files/digest-toycars-0.3.2 244
 SHA256 719b5f2d17c32c1af7492e1beebb1f279c4f83ff509e7cb4ec8c7480c5d1c9a9 files/digest-toycars-0.3.2 244
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.6 (GNU/Linux)
-
-iD8DBQFGCDMHRmMZkarFlIwRAkULAJ4lD1tV5MMT/FmFWR0w2Uc0g2BxbACfSGvG
-mM8OwJQwuLjSHDKI7FV5C8o=
-=yXvm
------END PGP SIGNATURE-----
diff --git a/games-sports/toycars/files/toycars-0.3.2-asneeded.patch b/games-sports/toycars/files/toycars-0.3.2-asneeded.patch
new file mode 100644 (file)
index 0000000..8a74ddd
--- /dev/null
@@ -0,0 +1,13 @@
+diff -ur toycars-0.3.2.orig/src/Makefile.am toycars-0.3.2/src/Makefile.am
+--- toycars-0.3.2.orig/src/Makefile.am 2006-08-17 09:49:48.000000000 +0300
++++ toycars-0.3.2/src/Makefile.am      2007-03-27 00:17:47.000000000 +0300
+@@ -13,6 +13,6 @@
+         ./glf/libglf.a            \
+         ./MyFisix/libmyfisix.a    \
+         ./Scoobie/libscoobie.a    \
+-        ./tinyxml/libtinyxml.a
+-
+-toycars_LDFLAGS = @SDL_LIBS@ @GLU_LIBS@
++        ./tinyxml/libtinyxml.a    \
++      @SDL_LIBS@                \
++      @GLU_LIBS@
index 4f2a59366bd591abac979d442baf8c2bd955e593..9fb1e38c332ee4f3cdea6f337c93e2345e297e60 100644 (file)
@@ -1,8 +1,10 @@
 # Copyright 1999-2007 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-sports/toycars/toycars-0.3.2.ebuild,v 1.2 2007/03/26 20:54:20 tupone Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-sports/toycars/toycars-0.3.2.ebuild,v 1.3 2007/03/26 21:29:32 drac Exp $
 
-inherit games
+WANT_AUTOMAKE="1.6"
+
+inherit autotools eutils games
 
 DESCRIPTION="a physics based 2-D racer inspired by Micromachines"
 HOMEPAGE="http://sourceforge.net/projects/toycars"
@@ -19,6 +21,13 @@ DEPEND="media-libs/libsdl
        virtual/glu
        virtual/opengl"
 
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+       epatch "${FILESDIR}"/${P}-asneeded.patch
+       eautomake
+}
+
 src_install() {
        dogamesbin src/${PN} || die "Failed installing ${PN} executable"
        insinto "${GAMES_DATADIR}/${PN}"