summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-cdr/nrg2iso')
-rw-r--r--app-cdr/nrg2iso/ChangeLog7
-rw-r--r--app-cdr/nrg2iso/files/0.2-lfs.patch55
-rw-r--r--app-cdr/nrg2iso/files/digest-nrg2iso-0.2-r11
-rw-r--r--app-cdr/nrg2iso/nrg2iso-0.2-r1.ebuild34
4 files changed, 96 insertions, 1 deletions
diff --git a/app-cdr/nrg2iso/ChangeLog b/app-cdr/nrg2iso/ChangeLog
index 3036ee983dd7..9e92ea4b79fc 100644
--- a/app-cdr/nrg2iso/ChangeLog
+++ b/app-cdr/nrg2iso/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-cdr/nrg2iso
# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-cdr/nrg2iso/ChangeLog,v 1.3 2004/01/09 22:15:46 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-cdr/nrg2iso/ChangeLog,v 1.4 2004/05/06 02:48:33 vapier Exp $
+
+*nrg2iso-0.2-r1 (05 May 2004)
+
+ 05 May 2004; Mike Frysinger <vapier@gentoo.org> :
+ Fix LFS support #49836 by Richard Stellingwerff.
*nrg2iso-0.2 (09 Jan 2004)
diff --git a/app-cdr/nrg2iso/files/0.2-lfs.patch b/app-cdr/nrg2iso/files/0.2-lfs.patch
new file mode 100644
index 000000000000..cbf11e76c5f4
--- /dev/null
+++ b/app-cdr/nrg2iso/files/0.2-lfs.patch
@@ -0,0 +1,55 @@
+--- nrg2iso.c.orig 2004-05-05 22:38:35.056108024 -0400
++++ nrg2iso.c 2004-05-05 22:41:46.129060520 -0400
+@@ -78,8 +78,8 @@
+ FILE *nrgFile, *isoFile;
+ char buffer[1048576];
+ int i=0,j=0;
+- int size=0,k=0,l;
+- int nrgSize=0;
++ off_t size=0,k=0,l, stepsize;
++ off_t nrgSize=0;
+ float pourcent=0.0;
+ struct stat buf;
+
+@@ -96,6 +96,8 @@
+ nrgFile=fopen(argv[1],"r");
+ fseek (nrgFile, 307200, SEEK_SET);
+
++ stepsize = nrgSize / 70;
++
+ isoFile=fopen(argv[2],"w+");
+
+ while((i= fread( buffer, 1, 1048576, nrgFile ))>0){
+@@ -104,17 +106,13 @@
+ size+=i;
+ pourcent = (100.0*size)/nrgSize;
+
+- if(j==10){
+- j=0;
+- k++;
+- printf("\r");
+- printf("|");
+- for(l=0;l<k;l++)
++ k = size / stepsize;
++ printf("\r");
++ printf("|");
++ for(l=0;l<k;l++)
+ printf("=");
+- printf(">[%d\%]",(int)pourcent);
+- fflush(stdout);
+- }
+- j++;
++ printf(">[%d\%]", (int)pourcent);
++ fflush(stdout);
+ }
+
+ printf("\r");
+@@ -126,7 +124,7 @@
+
+ fclose(nrgFile);
+ fclose(isoFile);
+- printf("\n%s written : %d bytes\n",argv[2],size);
++ printf("\n%s written : %.2f MB\n",argv[2],(float)size/1024/1024);
+ }
+ }
+ else
diff --git a/app-cdr/nrg2iso/files/digest-nrg2iso-0.2-r1 b/app-cdr/nrg2iso/files/digest-nrg2iso-0.2-r1
new file mode 100644
index 000000000000..f4e89040dae5
--- /dev/null
+++ b/app-cdr/nrg2iso/files/digest-nrg2iso-0.2-r1
@@ -0,0 +1 @@
+MD5 4ffe8f1617f969c0c381ad101e76d8a6 nrg2iso.tgz 8285
diff --git a/app-cdr/nrg2iso/nrg2iso-0.2-r1.ebuild b/app-cdr/nrg2iso/nrg2iso-0.2-r1.ebuild
new file mode 100644
index 000000000000..8fb3ed7a1c10
--- /dev/null
+++ b/app-cdr/nrg2iso/nrg2iso-0.2-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-cdr/nrg2iso/nrg2iso-0.2-r1.ebuild,v 1.1 2004/05/06 02:48:33 vapier Exp $
+
+inherit gcc flag-o-matic eutils
+
+DESCRIPTION="Converts nrg CD-images to iso"
+HOMEPAGE="http://gregory.kokanosky.free.fr/v4/linux/nrg2iso.en.html"
+SRC_URI="http://gregory.kokanosky.free.fr/v4/linux/${PN}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc"
+IUSE=""
+
+DEPEND="virtual/glibc"
+RDEPEND=""
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PV}-lfs.patch
+}
+
+src_compile() {
+ append-lfs-flags
+ $(gcc-getCC) ${CFLAGS} -o nrg2iso nrg2iso.c || die "failed to compile"
+}
+
+src_install() {
+ dobin nrg2iso || die
+}