diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2008-06-15 16:30:38 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2008-06-15 16:30:38 +0000 |
commit | 82f7b7fa7e8070c907a10d6fb0554f01e92b4fcf (patch) | |
tree | 11e456dfc06c9b4fd7b1d2a71bc38b3ba0d27721 /app-cdr | |
parent | do not run buildconf wrt #226051 (diff) | |
download | historical-82f7b7fa7e8070c907a10d6fb0554f01e92b4fcf.tar.gz historical-82f7b7fa7e8070c907a10d6fb0554f01e92b4fcf.tar.bz2 historical-82f7b7fa7e8070c907a10d6fb0554f01e92b4fcf.zip |
Fix implicit declarations and respect CC, CFLAGS, LDFLAGS. Keyword ~amd64.
Package-Manager: portage-2.1.5.5
Diffstat (limited to 'app-cdr')
-rw-r--r-- | app-cdr/mode2cdmaker/ChangeLog | 8 | ||||
-rw-r--r-- | app-cdr/mode2cdmaker/Manifest | 5 | ||||
-rw-r--r-- | app-cdr/mode2cdmaker/files/mode2cdmaker-1.5.1-gentoo.patch | 46 | ||||
-rw-r--r-- | app-cdr/mode2cdmaker/mode2cdmaker-1.5.1.ebuild | 21 |
4 files changed, 66 insertions, 14 deletions
diff --git a/app-cdr/mode2cdmaker/ChangeLog b/app-cdr/mode2cdmaker/ChangeLog index bd08ed82686f..ad7b34045816 100644 --- a/app-cdr/mode2cdmaker/ChangeLog +++ b/app-cdr/mode2cdmaker/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-cdr/mode2cdmaker -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-cdr/mode2cdmaker/ChangeLog,v 1.3 2007/02/21 20:18:01 peper Exp $ +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-cdr/mode2cdmaker/ChangeLog,v 1.4 2008/06/15 16:30:38 drac Exp $ + + 15 Jun 2008; Samuli Suominen <drac@gentoo.org> + +files/mode2cdmaker-1.5.1-gentoo.patch, mode2cdmaker-1.5.1.ebuild: + Fix implicit declarations and respect CC, CFLAGS, LDFLAGS. Keyword ~amd64. 21 Feb 2007; Piotr Jaroszyński <peper@gentoo.org> ChangeLog: Transition to Manifest2. diff --git a/app-cdr/mode2cdmaker/Manifest b/app-cdr/mode2cdmaker/Manifest index 9335da077070..7b55ed7dbf77 100644 --- a/app-cdr/mode2cdmaker/Manifest +++ b/app-cdr/mode2cdmaker/Manifest @@ -1,4 +1,5 @@ +AUX mode2cdmaker-1.5.1-gentoo.patch 1479 RMD160 4522893c552efe8d890fa413ada8c635863db904 SHA1 f8b072c36fc5118b6f441c7966de133a4645d25e SHA256 432d162e99f120f889ccf1f422763098e66edd78b368bfab0ab745636a4cb5aa DIST mode2cdmaker-1.5.1-src.zip 57049 RMD160 5a5934cf59a9333e7369914d2d321c69ea30c47c SHA1 1ec51ca4a4b28361e45d8bbdfcbeb5396e7c3d94 SHA256 d38f47cffe5d1276d1af9e8998a1100dc93e4d708cf284e6c3d8822f2bb6f38d -EBUILD mode2cdmaker-1.5.1.ebuild 862 RMD160 e66053bb4b9c232fef94a613c159e74c7d6aaded SHA1 3e88a7fd3a1d35eb1a8c7b682b3490260f1a3751 SHA256 a81168fa7907a31407174fc1ada0b7bde67607937db015f5305176f7f6afb35a -MISC ChangeLog 579 RMD160 88861c7e97fd5318fc76fa17b64a93ad994bf536 SHA1 f9f2dbc0a82a6504a6365df8bb7c4b1b377e24a6 SHA256 8e903a89942054372af01c3b85c48cf6776e5848a5c5829b2c63b5f31e0c7e54 +EBUILD mode2cdmaker-1.5.1.ebuild 809 RMD160 973aab8943ca5c801e720283a11ae1a7efa79d63 SHA1 69ad79764ad1c0fc02cfa7ab44085b302951d380 SHA256 11daaeea371c0e3bf036297e8af4a182cb4410b48c77020760800885b3fc4a04 +MISC ChangeLog 774 RMD160 b460a4de434d3f6d385e0d4c5bd585e2f78df640 SHA1 23ab74a0c265cc4c30ea69b86289bcdb2c9bcf5f SHA256 b9a5aecf218bcbb0c3dd2f71e282bfd698d0584b282f302e790ec0032be96068 MISC metadata.xml 166 RMD160 02ca0a5d9279c1b52c3887f5a1f52f3feb002af9 SHA1 b9fccc7c24aa717c30efef068fd544a692f264f6 SHA256 ce62d1e5b04e01d03a732ee6d33b3d500810de8e55af4a527c970e5b475735d8 diff --git a/app-cdr/mode2cdmaker/files/mode2cdmaker-1.5.1-gentoo.patch b/app-cdr/mode2cdmaker/files/mode2cdmaker-1.5.1-gentoo.patch new file mode 100644 index 000000000000..502819c11df3 --- /dev/null +++ b/app-cdr/mode2cdmaker/files/mode2cdmaker-1.5.1-gentoo.patch @@ -0,0 +1,46 @@ +diff -ur mode2cdmaker-1.5.1.orig/Makefile.linux mode2cdmaker-1.5.1/Makefile.linux +--- mode2cdmaker-1.5.1.orig/Makefile.linux 2003-02-01 16:27:18.000000000 +0200 ++++ mode2cdmaker-1.5.1/Makefile.linux 2008-06-15 19:24:14.000000000 +0300 +@@ -4,8 +4,8 @@ + output=mode2cdmaker + + all: +- gcc -c $(srcs) +- gcc -o $(output) $(objs) ++ $(CC) ${CFLAGS} -DMAX_PATH=512 -c $(srcs) ++ $(CC) ${LDFLAGS} -o $(output) $(objs) + + clean: + -rm -f $(objs) $(output) +diff -ur mode2cdmaker-1.5.1.orig/mkvcdfs.c mode2cdmaker-1.5.1/mkvcdfs.c +--- mode2cdmaker-1.5.1.orig/mkvcdfs.c 2003-03-14 19:57:38.000000000 +0200 ++++ mode2cdmaker-1.5.1/mkvcdfs.c 2008-06-15 19:23:25.000000000 +0300 +@@ -120,6 +120,7 @@ + #endif
+ #endif
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <fcntl.h>
+ #include <string.h>
+ #include <ctype.h>
+@@ -629,7 +630,7 @@ + next_command[1]=(char*)malloc(256);
+ while (fgets(next_command[1],256,pf))
+ {
+- next_command[1][lstrlen(next_command[1])-1]=0;
++ next_command[1][strlen(next_command[1])-1]=0;
+ parse_params(2,next_command,idepth+1);
+ }
+ fclose(pf);
+diff -ur mode2cdmaker-1.5.1.orig/vcdisofs.c mode2cdmaker-1.5.1/vcdisofs.c +--- mode2cdmaker-1.5.1.orig/vcdisofs.c 2003-02-02 00:02:44.000000000 +0200 ++++ mode2cdmaker-1.5.1/vcdisofs.c 2008-06-15 19:19:59.000000000 +0300 +@@ -80,6 +80,8 @@ + #include <windows.h>
+ #endif
+ #include <stdio.h>
++#include <stdlib.h>
++#include <string.h>
+ #include <time.h>
+ #include "defaults.h"
+
diff --git a/app-cdr/mode2cdmaker/mode2cdmaker-1.5.1.ebuild b/app-cdr/mode2cdmaker/mode2cdmaker-1.5.1.ebuild index 68c74e984d5c..68b206cc2e03 100644 --- a/app-cdr/mode2cdmaker/mode2cdmaker-1.5.1.ebuild +++ b/app-cdr/mode2cdmaker/mode2cdmaker-1.5.1.ebuild @@ -1,14 +1,16 @@ -# Copyright 1999-2005 Gentoo Foundation +# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-cdr/mode2cdmaker/mode2cdmaker-1.5.1.ebuild,v 1.3 2005/09/15 20:40:18 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-cdr/mode2cdmaker/mode2cdmaker-1.5.1.ebuild,v 1.4 2008/06/15 16:30:38 drac Exp $ + +inherit eutils toolchain-funcs DESCRIPTION="Utility to create mode-2 CDs, for example XCDs." -HOMEPAGE="http://webs.ono.com/usr016/de_xt/mcf.html" +HOMEPAGE="http://es.geocities.com/dextstuff/mode2cdmaker.html" SRC_URI="http://dext.peque.org/xcd/${P}-src.zip" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~ppc ~x86" +KEYWORDS="~amd64 ~ppc ~x86" IUSE="" DEPEND="app-arch/unzip" @@ -19,16 +21,15 @@ S=${WORKDIR} src_unpack() { unpack ${A} cd "${S}" - sed -e 's:gcc -c:gcc $(CFLAGS) -DMAX_PATH=512 -c:g' \ - Makefile.linux > Makefile || die "sed failed" - sed -i -e 's:lstrlen:strlen:g' mkvcdfs.c || die "sed failed" + epatch "${FILESDIR}"/${P}-gentoo.patch } src_compile() { - emake || die "emake failed" + tc-export CC + emake -f Makefile.linux || die "emake failed." } src_install() { - dobin mode2cdmaker || die "dobin failed" - dodoc bugs.txt compatibility.txt readme.txt + dobin mode2cdmaker || die "dobin failed." + dodoc {bugs,compatibility,readme}.txt } |