summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-arch/unace')
-rw-r--r--app-arch/unace/ChangeLog10
-rw-r--r--app-arch/unace/files/unace-2.5-build.patch34
-rw-r--r--app-arch/unace/unace-2.5-r1.ebuild35
3 files changed, 77 insertions, 2 deletions
diff --git a/app-arch/unace/ChangeLog b/app-arch/unace/ChangeLog
index 938527c7e3ba..bae55febec52 100644
--- a/app-arch/unace/ChangeLog
+++ b/app-arch/unace/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-arch/unace
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/unace/ChangeLog,v 1.29 2007/09/17 01:09:44 jer Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-arch/unace/ChangeLog,v 1.30 2008/03/29 20:48:39 vapier Exp $
+
+*unace-2.5-r1 (29 Mar 2008)
+
+ 29 Mar 2008; Mike Frysinger <vapier@gentoo.org>
+ +files/unace-2.5-build.patch, +unace-2.5-r1.ebuild:
+ Version bump to build with source code #214216 by Robert Buchholz.
17 Sep 2007; Jeroen Roovers <jer@gentoo.org> unace-1.2b-r1.ebuild:
Stable for HPPA too.
diff --git a/app-arch/unace/files/unace-2.5-build.patch b/app-arch/unace/files/unace-2.5-build.patch
new file mode 100644
index 000000000000..48197407b4fb
--- /dev/null
+++ b/app-arch/unace/files/unace-2.5-build.patch
@@ -0,0 +1,34 @@
+--- makefile
++++ makefile
+@@ -14,17 +14,16 @@
+ SRCSsl = $(BASIC_DIR)source
+ SRCS = $(SRCSsl)/
+
++ifdef SYSINC
+ INCLSYSDIR = //usr/include/sys
+ INCLDIR = //usr/include
+-
+-DEFINES = -D__LINUX__ -D__unix__ -D__GCC__ -U__HAS_IO_H__
+-
+-ifdef DEBUG
+-LSWITCHES =
++INCLS = -I$(INCLDIR) -idirafter $(INCLSYSDIR)
+ else
+-LSWITCHES = -Wl,-s
++INCLS =
+ endif
+
++DEFINES = -D__LINUX__ -D__unix__ -D__GCC__ -U__HAS_IO_H__
++
+ ##############################################################################
+ all: unace
+
+@@ -47,7 +46,7 @@
+ $(APPS_UNACEEXE_CFILES)
+
+ unace: $(UNACEEXELIN_CFILES)
+- $(CC) $(CFLAGS) $(LSWITCHES) -I$(INCLDIR) -idirafter $(INCLSYSDIR) -I$(SRCSsl) $(DEFINES) $(UNACEEXELIN_CFILES) -ggdb -o$(EXECS_DIR)unace
++ $(CC) $(CFLAGS) $(LDFLAGS) $(INCLS) -I$(SRCSsl) $(DEFINES) $(UNACEEXELIN_CFILES) -ggdb -o$(EXECS_DIR)unace
+ ifndef DEBUG
+ tar cfvz linunace25.tgz unace file_id.diz licence
+ #sh linpack.sh
diff --git a/app-arch/unace/unace-2.5-r1.ebuild b/app-arch/unace/unace-2.5-r1.ebuild
new file mode 100644
index 000000000000..21c9dcda5139
--- /dev/null
+++ b/app-arch/unace/unace-2.5-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-arch/unace/unace-2.5-r1.ebuild,v 1.1 2008/03/29 20:48:39 vapier Exp $
+
+inherit eutils toolchain-funcs
+
+DEB_VER="4"
+DESCRIPTION="ACE unarchiver"
+HOMEPAGE="http://www.winace.com/"
+SRC_URI="mirror://debian/pool/non-free/u/unace-nonfree/unace-nonfree_${PV}.orig.tar.gz
+ mirror://debian/pool/non-free/u/unace-nonfree/unace-nonfree_${PV}-${DEB_VER}.diff.gz"
+
+LICENSE="freedist"
+SLOT="1"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${WORKDIR}"/unace-nonfree_${PV}-${DEB_VER}.diff
+ local p
+ for p in $(<unace-nonfree-${PV}/debian/patches/00list) ; do
+ epatch unace-nonfree-${PV}/debian/patches/${p}.dpatch
+ done
+ epatch "${FILESDIR}"/${P}-build.patch
+ tc-export CC
+}
+
+src_install() {
+ dobin unace || die
+ doman unace-nonfree-${PV}/debian/manpage/unace.1
+}