Updated bsdtar, unrestricted the libarchive dependency. Added patch to compile clean...
authorDiego Elio Pettenò <flameeyes@gentoo.org>
Tue, 6 Sep 2005 08:44:27 +0000 (08:44 +0000)
committerDiego Elio Pettenò <flameeyes@gentoo.org>
Tue, 6 Sep 2005 08:44:27 +0000 (08:44 +0000)
Package-Manager: portage-2.0.51.22

app-arch/bsdtar/ChangeLog
app-arch/bsdtar/Manifest
app-arch/bsdtar/bsdtar-1.02.031.ebuild [new file with mode: 0644]
app-arch/bsdtar/files/bsdtar-1.02.031-wchar.patch [new file with mode: 0644]
app-arch/bsdtar/files/digest-bsdtar-1.02.031 [new file with mode: 0644]

index 991d55b21c36195b2d2367f2b4cc63b56324d460..806f4d4272cff7b32ebbb961664f6d2e263d86d1 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for app-arch/bsdtar
 # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/bsdtar/ChangeLog,v 1.9 2005/08/30 18:12:30 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/bsdtar/ChangeLog,v 1.10 2005/09/06 08:44:27 flameeyes Exp $
+
+*bsdtar-1.02.031 (06 Sep 2005)
+
+  06 Sep 2005; Diego Pettenò <flameeyes@gentoo.org>
+  +files/bsdtar-1.02.031-wchar.patch, +bsdtar-1.02.031.ebuild:
+  Updated bsdtar, unrestricted the libarchive dependency. Added patch to
+  compile clean with latest libarchive.
 
   30 Aug 2005; Diego Pettenò <flameeyes@gentoo.org> bsdtar-1.02.030.ebuild:
   Don't use ${P} for osx patch.
index 5e358db7d5a80ebf469ff6f15d1e587836e8de5c..c9a1eaf05b23d4b6f6808b79d5b71c7e97afc28b 100644 (file)
@@ -1,7 +1,20 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
 MD5 1305c3eeea0332d6b65566a0621d5a7c bsdtar-1.02.027-r1.ebuild 1112
-MD5 8a77b3ef78adb52434b7645766209a6a ChangeLog 1644
+MD5 b0befd4fa4fa59f09d76dea93a0f7a16 ChangeLog 1907
+MD5 7717dba1c2a051f4655c23347471acce bsdtar-1.02.031.ebuild 1150
 MD5 237fafd1cf6bf6b5047443e93f74007c bsdtar-1.02.030.ebuild 1120
 MD5 afec809b169074e5d5b0803e4f8f5ec8 metadata.xml 428
 MD5 23a5ba81fd708274f460d74e61f6f10d files/bsdtar-1.02.027-osx.patch 475
+MD5 fcf87dfc943292314d8eb1287c40bd90 files/bsdtar-1.02.031-wchar.patch 2376
 MD5 7cf5fd7cad3a8974a71ce2e1622824c5 files/digest-bsdtar-1.02.027-r1 67
 MD5 2a8e4734601d558f6ce4f0df1a3a7033 files/digest-bsdtar-1.02.030 67
+MD5 d02bfada963e54e1598f87a597222f0b files/digest-bsdtar-1.02.031 67
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.2 (GNU/Linux)
+
+iD8DBQFDHVcQj5H05b2HAEkRAlRlAKCS3FGez7hYb+sKx0NWwH7+G59mcACfeJMm
+Y6PCLJNJ1fSJqOU79sQwT0w=
+=XhYg
+-----END PGP SIGNATURE-----
diff --git a/app-arch/bsdtar/bsdtar-1.02.031.ebuild b/app-arch/bsdtar/bsdtar-1.02.031.ebuild
new file mode 100644 (file)
index 0000000..81fff98
--- /dev/null
@@ -0,0 +1,47 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-arch/bsdtar/bsdtar-1.02.031.ebuild,v 1.1 2005/09/06 08:44:27 flameeyes Exp $
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="BSD tar command"
+HOMEPAGE="http://people.freebsd.org/~kientzle/libarchive/"
+SRC_URI="http://people.freebsd.org/~kientzle/libarchive/src/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc-macos ~x86"
+IUSE="build static"
+
+# This is told to be used ( !elibc_glibc? ( dev-libs/libgnugetopt ) ) but isn't
+# linked at all
+RDEPEND="app-arch/bzip2
+       sys-libs/zlib"
+
+DEPEND="dev-libs/libarchive
+       ${RDEPEND}"
+
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+
+       epatch ${FILESDIR}/${PN}-1.02.027-osx.patch
+       epatch ${FILESDIR}/${P}-wchar.patch
+}
+
+src_compile() {
+       ( use static || use build ) && append-ldflags -static
+
+       econf --bindir=/bin || die "econf failed"
+       emake || die "emake failed"
+}
+
+src_install() {
+       make DESTDIR="${D}" install
+
+       # Create tar symlink for BSD userlands
+       if [[ ${USERLAND} == "BSD" ]]; then
+               dosym bsdtar /bin/tar
+               dosym bsdtar.1.gz /usr/share/man/man1/tar.1.gz
+       fi
+}
diff --git a/app-arch/bsdtar/files/bsdtar-1.02.031-wchar.patch b/app-arch/bsdtar/files/bsdtar-1.02.031-wchar.patch
new file mode 100644 (file)
index 0000000..5dd5601
--- /dev/null
@@ -0,0 +1,73 @@
+Index: bsdtar-1.02.031/bsdtar.c
+===================================================================
+--- bsdtar-1.02.031.orig/bsdtar.c
++++ bsdtar-1.02.031/bsdtar.c
+@@ -27,6 +27,10 @@
+ #include "bsdtar_platform.h"
+ __FBSDID("$FreeBSD: src/usr.bin/tar/bsdtar.c,v 1.64 2005/08/02 03:02:55 kientzle Exp $");
+ 
++#if HAVE_WCHAR_H
++#include <wchar.h>
++#endif
++
+ #include <sys/param.h>
+ #include <sys/stat.h>
+ #include <archive.h>
+Index: bsdtar-1.02.031/configure.ac
+===================================================================
+--- bsdtar-1.02.031.orig/configure.ac
++++ bsdtar-1.02.031/configure.ac
+@@ -13,7 +13,7 @@ AC_PROG_YACC
+ # Checks for header files.
+ AC_HEADER_DIRENT
+ AC_HEADER_STDC
+-AC_CHECK_HEADERS([bzlib.h fcntl.h inttypes.h langinfo.h limits.h locale.h paths.h stdint.h stdlib.h string.h sys/ioctl.h sys/param.h unistd.h zlib.h])
++AC_CHECK_HEADERS([bzlib.h fcntl.h inttypes.h langinfo.h limits.h locale.h paths.h stdint.h stdlib.h string.h sys/ioctl.h sys/param.h unistd.h wchar.h zlib.h])
+ 
+ # Checks for libraries.
+ AC_CHECK_LIB([z], [inflate])
+Index: bsdtar-1.02.031/read.c
+===================================================================
+--- bsdtar-1.02.031.orig/read.c
++++ bsdtar-1.02.031/read.c
+@@ -27,6 +27,10 @@
+ #include "bsdtar_platform.h"
+ __FBSDID("$FreeBSD: src/usr.bin/tar/read.c,v 1.23 2005/04/17 17:20:54 kientzle Exp $");
+ 
++#if HAVE_WCHAR_H
++#include <wchar.h>
++#endif
++
+ #include <sys/param.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+Index: bsdtar-1.02.031/util.c
+===================================================================
+--- bsdtar-1.02.031.orig/util.c
++++ bsdtar-1.02.031/util.c
+@@ -27,6 +27,10 @@
+ #include "bsdtar_platform.h"
+ __FBSDID("$FreeBSD: src/usr.bin/tar/util.c,v 1.13 2005/04/17 19:46:50 kientzle Exp $");
+ 
++#ifdef HAVE_WCHAR_H
++#include <wchar.h>
++#endif
++
+ #include <sys/stat.h>
+ #include <sys/types.h>  /* Linux doesn't define mode_t, etc. in sys/stat.h. */
+ #include <archive_entry.h>
+Index: bsdtar-1.02.031/write.c
+===================================================================
+--- bsdtar-1.02.031.orig/write.c
++++ bsdtar-1.02.031/write.c
+@@ -27,6 +27,10 @@
+ #include "bsdtar_platform.h"
+ __FBSDID("$FreeBSD: src/usr.bin/tar/write.c,v 1.41 2005/05/08 06:25:15 kientzle Exp $");
+ 
++#ifdef HAVE_WCHAR_H
++#include <wchar.h>
++#endif
++
+ #include <sys/stat.h>
+ #include <sys/types.h>
+ #ifdef HAVE_POSIX_ACL
diff --git a/app-arch/bsdtar/files/digest-bsdtar-1.02.031 b/app-arch/bsdtar/files/digest-bsdtar-1.02.031
new file mode 100644 (file)
index 0000000..ffa4847
--- /dev/null
@@ -0,0 +1 @@
+MD5 4926a14f489e45fef75cf90d517f82ed bsdtar-1.02.031.tar.gz 133433