summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchim Gottinger <achim@gentoo.org>2000-09-14 00:01:54 +0000
committerAchim Gottinger <achim@gentoo.org>2000-09-14 00:01:54 +0000
commitd7faa2dacfbf56b856aba5d53b02754647cc2bfa (patch)
tree2031fae99b3c4b044fd008ca40c9cea04cfa5d04
parent*** empty log message *** (diff)
downloadhistorical-d7faa2dacfbf56b856aba5d53b02754647cc2bfa.tar.gz
historical-d7faa2dacfbf56b856aba5d53b02754647cc2bfa.tar.bz2
historical-d7faa2dacfbf56b856aba5d53b02754647cc2bfa.zip
Added support for zip compressed archives
RPM Support works again
-rw-r--r--sys-apps/portage/files/ebuild46
1 files changed, 23 insertions, 23 deletions
diff --git a/sys-apps/portage/files/ebuild b/sys-apps/portage/files/ebuild
index 8dcdf62a5bc3..3ad23171071b 100644
--- a/sys-apps/portage/files/ebuild
+++ b/sys-apps/portage/files/ebuild
@@ -82,6 +82,11 @@ gzunpack()
tar xzf $1
}
+pkunpack()
+ {
+ unzip $i
+ }
+
pmake()
{
make ${MAKEOPTS} MAKE="make ${MAKEOPTS}" $*
@@ -279,6 +284,12 @@ unpack() {
tbz2)
bz2unpack ${DISTDIR}/${x}
;;
+ zip)
+ pkunpack ${DISTDIR}/${x}
+ ;;
+ ZIP)
+ pkunpack ${DISTDIR}/${x}
+ ;;
*)
echo "Archive format not recognized."
exit
@@ -1017,27 +1028,23 @@ dyn_unmerge() {
dyn_spec() {
+
+ tar czf /usr/src/redhat/SOURCES/${PF}.tar.gz ${O}/${PF}.ebuild ${O}/files
- tar czf /usr/src/redhat/SOURCES/${P}.tar.gz ${P}.* files
-
- local V
-
- V=${P#${O##*/}*}
- V=${V/[!digit]/}
- V=${V/-/.}
-
- cat <<__END1__ > ${P}.spec
+ cat <<__END1__ > ${PF}.spec
Summary: ${DESCRIPTION}
-Name: ${O##*/}
-Version: ${V}
-Release: 1
+Name: ${PN}
+Version: ${PV}
+Release: ${PR}
Copyright: GPL
Group: portage/${CATEGORY}
-Source: ${P}.tar.gz
+Source: ${PF}.tar.gz
Buildroot: ${D}
%description
${DESCRIPTION}
+${HOMEPAGE}
+
%prep
%setup -c
@@ -1054,16 +1061,9 @@ __END1__
}
dyn_rpm () {
dyn_spec
- rpm -bb ${P}.spec
- local V
-
- V=${P#${O##*/}*}
- V=${V/[!digit]/}
- V=${V/-/.}
- local W
- W="portage/${CATEGORY}"
-
- install -D /usr/src/redhat/RPMS/i386/${O##*/}-${V}-1.i386.rpm ${RPMDIR}/${W}/${O##*/}-${V}.rpm
+ rpm -bb ${PF}.spec
+
+ install -D /usr/src/redhat/RPMS/i386/${PN}-${PV}-${PR}.i386.rpm ${RPMDIR}/${CATEGORY}/${PN}-${PV}-${PR}.rpm
}
dyn_help() {