diff options
author | 2002-08-17 13:25:07 +0000 | |
---|---|---|
committer | 2002-08-17 13:25:07 +0000 | |
commit | efb060d13772e0cc3f0b064fb2fbc7d8b27309ed (patch) | |
tree | 083b1aff07c0b7ae98377df8e07a1d3850510743 /app-arch/arc | |
parent | Added license (diff) | |
download | historical-efb060d13772e0cc3f0b064fb2fbc7d8b27309ed.tar.gz historical-efb060d13772e0cc3f0b064fb2fbc7d8b27309ed.tar.bz2 historical-efb060d13772e0cc3f0b064fb2fbc7d8b27309ed.zip |
Initial import
Diffstat (limited to 'app-arch/arc')
-rw-r--r-- | app-arch/arc/ChangeLog | 8 | ||||
-rw-r--r-- | app-arch/arc/arc-521e.ebuild | 61 | ||||
-rw-r--r-- | app-arch/arc/files/arc-521e-timeh.patch | 20 | ||||
-rw-r--r-- | app-arch/arc/files/digest-arc-521e | 1 |
4 files changed, 90 insertions, 0 deletions
diff --git a/app-arch/arc/ChangeLog b/app-arch/arc/ChangeLog new file mode 100644 index 000000000000..af63e128f1a1 --- /dev/null +++ b/app-arch/arc/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for app-arch/arc +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-arch/arc/ChangeLog,v 1.1 2002/08/17 13:25:07 aliz Exp $ + +*arc-521e (17 Aug 2002) + + 17 Aug 2002; Daniel Ahlberg <aliz@gentoo.org> arc-521e.ebuild: + Initial import. Ebuild submitted by Enrico Morelli <morelli@cerm.unifi.it>. diff --git a/app-arch/arc/arc-521e.ebuild b/app-arch/arc/arc-521e.ebuild new file mode 100644 index 000000000000..7364a7355b6c --- /dev/null +++ b/app-arch/arc/arc-521e.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# Author Enrico Morelli - 20/06/2002 + +DESCRIPTION="Create & extract files from DOS .ARC files." + +DEPEND="virtual/glibc" +MY_P="${PN}${PV}.pl8" +#SRC_URI="ftp://ftp.kiarchive.ru/pub/unix/arcers/${M_P}.tar.Z" +SRC_URI="${MY_P}.tar.Z" +RESTRICT="fetch" + +KEYWORDS="x86" +SLOT="0" +LICENSE="ARC" + +dyn_fetch() { + for y in ${A} + do + digest_check ${y} + if [ $? -ne 0 ]; then + einfo "Please download ${MY_P}.tar.Z from ftp.kiarchive.ru/pub/unix/arcers" + einfo "and place it in ${DISTDIR}" + exit 1 + fi + done +} + +src_unpack () { + # You must download arc-521e.pl8.tar.Z + # from ftp.kiarchive.ru/pub/unix/arcers and put it in ${DISTDIR} + + unpack ${A} + cd ${WORKDIR} + patch -p1 < ${FILESDIR}/${P}-timeh.patch + cat marc.c | sed -e 's/char \*arctemp2, \*mktemp();/char *arctemp2;/' \ + -e 's/mktemp/mkstemp/g' > marc.c.new + mv marc.c.new marc.c + cat arc.c | sed -e 's/\*arctemp2, \*mktemp();/*arctemp2;/g' \ + -e 's/mktemp/mkstemp/g' > arc.c.new + mv arc.c.new arc.c + + cp Makefile Makefile.orig + sed "s:\$(OPT):${CFLAGS}:" Makefile.orig >Makefile + +} + +src_compile () { + + cd ${WORKDIR} + + emake || die +} + +src_install () { + + cd ${WORKDIR} + into /usr + dobin arc marc + doman arc.1 +} diff --git a/app-arch/arc/files/arc-521e-timeh.patch b/app-arch/arc/files/arc-521e-timeh.patch new file mode 100644 index 000000000000..8f22fc51ec99 --- /dev/null +++ b/app-arch/arc/files/arc-521e-timeh.patch @@ -0,0 +1,20 @@ +--- ./tmclock.c.timeh Fri May 4 01:08:13 2001 ++++ ./tmclock.c Fri May 4 01:09:13 2001 +@@ -16,6 +16,7 @@ + #define CENTURY 19 + #if BSD + #include <sys/time.h> ++#include <time.h> + #else + #include <time.h> + extern long timezone; /* should be in <time.h>, but isn't on Sun */ +--- ./arcdos.c.timeh Fri May 4 01:08:27 2001 ++++ ./arcdos.c Fri May 4 01:08:50 2001 +@@ -32,6 +32,7 @@ + #include <sys/stat.h> + #if BSD + #include <sys/time.h> ++#include <time.h> + #else + #include <time.h> /* Sys V. Bleah. */ + struct timeval { diff --git a/app-arch/arc/files/digest-arc-521e b/app-arch/arc/files/digest-arc-521e new file mode 100644 index 000000000000..57818593357d --- /dev/null +++ b/app-arch/arc/files/digest-arc-521e @@ -0,0 +1 @@ +MD5 a6eca0eb9d8cfb8d9bb62753c85759cb arc521e.pl8.tar.Z 100821 |