Transfer prefix keywords, add patch for Darwin
authorJonathan Callen <jcallen@gentoo.org>
Sun, 21 Feb 2010 01:29:44 +0000 (01:29 +0000)
committerJonathan Callen <jcallen@gentoo.org>
Sun, 21 Feb 2010 01:29:44 +0000 (01:29 +0000)
Package-Manager: portage--svn/cvs/Linux i686

dev-util/httpup/ChangeLog
dev-util/httpup/files/httpup-0.3.2-darwin.patch [new file with mode: 0644]
dev-util/httpup/httpup-0.3.2.ebuild

index af62ad44b9d5d47eacaaecf5fc0f47111681b243..3dd6cc1acf63f8cace020860475a89b77f95caf4 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for dev-util/httpup
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/httpup/ChangeLog,v 1.6 2009/08/25 19:54:09 vostorga Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/httpup/ChangeLog,v 1.7 2010/02/21 01:29:43 abcd Exp $
+
+  21 Feb 2010; Jonathan Callen <abcd@gentoo.org> httpup-0.3.2.ebuild,
+  +files/httpup-0.3.2-darwin.patch:
+  Transfer prefix keywords, add patch for Darwin
 
   25 Aug 2009; VĂ­ctor Ostorga <vostorga@gentoo.org> httpup-0.3.2.ebuild,
   +files/httpup-0.3.2-gcc44.patch:
diff --git a/dev-util/httpup/files/httpup-0.3.2-darwin.patch b/dev-util/httpup/files/httpup-0.3.2-darwin.patch
new file mode 100644 (file)
index 0000000..30a76c5
--- /dev/null
@@ -0,0 +1,13 @@
+* Darwin and BSD need libgen.h for basename, on linux this header is
+  also available
+
+--- httpup.cpp
++++ httpup.cpp
+@@ -15,6 +15,7 @@
+ #include <sys/stat.h>
+ #include <unistd.h>
+ #include <dirent.h>
++#include <libgen.h>
+ 
+ #include "fileutils.h"
+ #include "httpup.h"
index 42e2cdb764fcbbc8963656ead79b2b1a81e1b453..bf064bcadd9d4735b51ef41e208608783e6814d5 100644 (file)
@@ -1,6 +1,6 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/httpup/httpup-0.3.2.ebuild,v 1.4 2009/08/25 19:54:09 vostorga Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/httpup/httpup-0.3.2.ebuild,v 1.5 2010/02/21 01:29:43 abcd Exp $
 
 inherit eutils toolchain-funcs
 
@@ -10,7 +10,7 @@ SRC_URI="http://jw.tks6.net/files/crux/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~x86 ~ppc"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
 IUSE=""
 
 DEPEND="net-misc/curl"
@@ -19,6 +19,7 @@ RDEPEND="${DEPEND}"
 src_unpack() {
        unpack ${A}
        cd "${S}"
+       epatch "${FILESDIR}"/${P}-darwin.patch
        sed -i \
                -e 's:g++:$(CXX) $(CFLAGS) $(LDFLAGS):' \
                Makefile