From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- app-arch/xar/Manifest | 10 +++++ .../files/xar-1.5.2-automagic_acl_and_bzip2.patch | 46 ++++++++++++++++++++++ app-arch/xar/files/xar-1.5.2-respect_ldflags.patch | 21 ++++++++++ app-arch/xar/files/xar-1.6.1-ext2.patch | 24 +++++++++++ app-arch/xar/metadata.xml | 19 +++++++++ app-arch/xar/xar-1.5.2-r1.ebuild | 35 ++++++++++++++++ app-arch/xar/xar-1.6.1-r1.ebuild | 40 +++++++++++++++++++ 7 files changed, 195 insertions(+) create mode 100644 app-arch/xar/Manifest create mode 100644 app-arch/xar/files/xar-1.5.2-automagic_acl_and_bzip2.patch create mode 100644 app-arch/xar/files/xar-1.5.2-respect_ldflags.patch create mode 100644 app-arch/xar/files/xar-1.6.1-ext2.patch create mode 100644 app-arch/xar/metadata.xml create mode 100644 app-arch/xar/xar-1.5.2-r1.ebuild create mode 100644 app-arch/xar/xar-1.6.1-r1.ebuild (limited to 'app-arch/xar') diff --git a/app-arch/xar/Manifest b/app-arch/xar/Manifest new file mode 100644 index 000000000000..05cc0241fce6 --- /dev/null +++ b/app-arch/xar/Manifest @@ -0,0 +1,10 @@ +AUX xar-1.5.2-automagic_acl_and_bzip2.patch 1619 SHA256 2ac709aa38122395c6742e82fb2352393ceb39c62fae0b0ff173f9d29bde3caf SHA512 cecb77eebd658be30eb4132166563d829f76bf6ce6a0c38cdbff033ec7eab2d4aefe87eb9b8bbc80961ea9ee44f40cc90a87cfd4860aae66661d698126e678e1 WHIRLPOOL afce1361bbc197f4054ef070985d0d17ceccc604a8a087ee4a0cd1100a4eb32df041b4c3b5e91710f090b45fbdb65b84e037f260a6e72def03fdc0d77f5be3c0 +AUX xar-1.5.2-respect_ldflags.patch 1058 SHA256 a1b57b7ac48c37d472c1856cddd09c2401e0daef7786144b665c247569702956 SHA512 30c474cc51d7cd3a6ffcbda565867ee81fb619d9648a8d2502a020b98ab36f756096ce88244db7d370b3627da9a5a88129fb5575cc1a6073bcdf26eb857a95bd WHIRLPOOL 9b56379ced822c3793c82f82647f8260105abb51e6a27b3877cc9d58fa8cb5f420f6903a6e61722bf001b7aa406bc0972121ae3d1d344068d12007dcb5c1e355 +AUX xar-1.6.1-ext2.patch 693 SHA256 8190dc973cd8e2ac0b6a4ce2a4b9ef1070bbd751111da2abd86635261c56e410 SHA512 fd04b8552c85b0a4c40283b691746ef2a40aef17aa30ed697b8e1f83e10caa2e21b4c000197192e98a1ddcffd745a37ab592193eaa5120a7048b861ed1036c89 WHIRLPOOL 15ce821186f140d17a48ff59708eadce8955f78383b482f679035ba8bf7137731fd93b89fd56a0489d2aec3166b41fd2fe9963afc5a618f20dcb8bcead18877f +DIST xar-1.5.2.tar.gz 137973 SHA256 4c5d5682803cdfab16d72365cf51fc4075d597c5eeaa8c7d1990fea98cdae3e6 SHA512 975861324ee31805eb107f51f2f6c43029b25601d4c1daa2dfee49ec7e25351e94798de9fb5c011b90d93dd6a3bbd3fe15c97ab0fc32f0b36b3000dd48cbf46b WHIRLPOOL b820921ab7412495bda671774338ca6eacb6666b2ae50ebc76c0ff5e965d24042ffa98dbe306ce46de71a375beb2ae8cbaf6814c085ee3b3b3a4efae897ebd5e +DIST xar-1.6.1.tar.gz 180771 SHA256 ee46089968457cf710b8cf1bdeb98b7ef232eb8a4cdeb34502e1f16ef4d2153e SHA512 6ddf83130519006c4d8fe699cdf5a6e5e41b293f3411d4744bf3425fda21556ef54b95e46f60c13f9276070ccda94c8d95a543f1fda4cbd9e3087ab9b5d0b00b WHIRLPOOL e7e77de1ff8aa089fe12c6eca0565f5f639e1d97653f5bfe968994a5236e12e8267d3ee082aa84e91561e395dd4b0b805bd5861c6ebff904b7f02f6d6b4be89e +EBUILD xar-1.5.2-r1.ebuild 798 SHA256 80d946f8bb2eefa1f227dcddb1d09248bb4ad1c5b9b17602f2a744a5462e4c37 SHA512 e5e8f4b9ddb93e892cc2c4072cb97d3204758b2957aceb0f6268edf525a7ba980f3d121705902bc9a7d51f2660f91fc86521db213aa2cadaf237d4c07765b8dc WHIRLPOOL 1e92beb7702edce0c9ce21a890c5e4361a1f5d8fdee99934352e4b3b43a462b9b63bc8320bfe2523c2909e3ce96ea61b6685a4645d89a06fc2805f7ca4ec0bf7 +EBUILD xar-1.6.1-r1.ebuild 796 SHA256 ea6d3d9b06846827d7cffe585026b17bdf2ff2d32b96c71657321974ef12ca16 SHA512 f69913a2f0ae8de5e0cdc92ec071f4559f1994f2d3c89faa3b3801899134e729fa7ce2e41b29fd76c964de962cc0fbf1c0706eff9be7c89bd3e88e08733a47a9 WHIRLPOOL 13a22e8b72ad5ec4aa994d2d32b47b718c8eb00455a107081084f7df4bec86711067e788fd0e0a3e9611ca307f9d83975878c8da551b32d28baa71398d1fb3f8 +MISC ChangeLog 3456 SHA256 22249b63ff209173b62b44a26cd4512b5b07a788652d3ce90f2d48fabd3d6d83 SHA512 f78d69e0b954d1be22474c5bc542b8bc100d405902bbfe792e6500e31fae2c0647b66dac11cc313968983834d236109008edd3ded76832b2a79d480c7be3f581 WHIRLPOOL fc212f748041489a546bc65c63f8513d2deff3f010d56e71d9b0c7410642759a328f468e83ed15923ffc3287da24a6573bce4922b7e4d1653e3eb328179d7b1d +MISC ChangeLog-2015 3648 SHA256 91fc1b94278a158e22125eec47c6f296a78302e6c1f133a5a86c3e4ee99e9c05 SHA512 9ef30cd123c8c858f8f77c1884727debf1f0c28569ffb521e67f07e629db3ba170119909432f65fa227c9e5fe5ecc597cd8cbeec439aab60f8a508530554bf58 WHIRLPOOL 03fcab0f2a8562c8a684a540b9a8dea3863132ae9546ed242d194586bf90f7b842537b4dc84c94261d90a841204c3433d437a676916da53c24d7cdc466dc3222 +MISC metadata.xml 913 SHA256 e8a05d256865e70fdeb5992f70c1f541600ab9f8f9555306b8a178e82a0c7b82 SHA512 18d544f82de8d9f59d73b2e22c0b9a48cb0fd77a4b0f999bb0a1fa8d734f4b191c78fcfb4603faa7e00655856a29bdd2832b6401e822c7db3bab3cb44395ef56 WHIRLPOOL be47a018dd13c7fb29a5e88c44e1bbb3fd3a9cec0e37a729332a902aacd0a0735f0031365f044f69ab484d5043fba144c1840330f36223a839727b11260a888a diff --git a/app-arch/xar/files/xar-1.5.2-automagic_acl_and_bzip2.patch b/app-arch/xar/files/xar-1.5.2-automagic_acl_and_bzip2.patch new file mode 100644 index 000000000000..54ad8f725314 --- /dev/null +++ b/app-arch/xar/files/xar-1.5.2-automagic_acl_and_bzip2.patch @@ -0,0 +1,46 @@ +diff -ur xar-1.5.2.orig/configure.ac xar-1.5.2/configure.ac +--- xar-1.5.2.orig/configure.ac 2007-12-29 20:49:57.000000000 +0200 ++++ xar-1.5.2/configure.ac 2008-05-19 17:07:23.000000000 +0300 +@@ -181,8 +181,13 @@ + ) + AC_SUBST([enable_autogen]) + ++AC_ARG_ENABLE(acl, AC_HELP_STRING([--disable-acl], [disable support for libacl (default=autodetect)]), [ enable_acl=$enableval ], [ enable_acl=yes ]) ++ ++if test "x$enable_acl" = "xyes"; then + AC_TRY_COMPILE([#include + #include ], [acl_t a], [AC_DEFINE([HAVE_SYS_ACL_H],[1], [define if you have sys/acl.h and it has a working acl_t type])]) ++fi ++ + AC_CHECK_HEADERS(ext2fs/ext2_fs.h sys/statfs.h sys/xattr.h sys/param.h sys/extattr.h libutil.h) + AC_CHECK_FUNCS(lgetxattr) + AC_CHECK_FUNCS(lsetxattr) +@@ -251,7 +256,9 @@ + AC_ERROR(can not detect the size of your system's dev_t type) + fi + +-AC_CHECK_LIB(acl, acl_get_file) ++if test "x$enable_acl" = "xyes"; then ++ AC_CHECK_LIB(acl, acl_get_file) ++fi + + dnl Check for paths + AC_PREFIX_DEFAULT(/usr/local) +@@ -342,9 +349,14 @@ + dnl + dnl Configure libbz2. + dnl +-have_libbz2="1" +-AC_CHECK_HEADERS([bzlib.h], , [have_libbz2="0"]) +-AC_CHECK_LIB([bz2], [BZ2_bzCompress], , [have_libbz2="0"]) ++AC_ARG_ENABLE(bzip2, AC_HELP_STRING([--disable-bzip2], [disable support for libbz2 (default=autodetect)]), [ enable_bzip2=$enableval ], [ enable_bzip2=yes ]) ++ ++if test "x$enable_bzip2" = "xyes"; then ++ have_libbz2="1" ++ AC_CHECK_HEADERS([bzlib.h], , [have_libbz2="0"]) ++ AC_CHECK_LIB([bz2], [BZ2_bzCompress], , [have_libbz2="0"]) ++fi ++ + if test "x${have_libbz2}" = "x1" ; then + AC_DEFINE([HAVE_LIBBZ2]) + fi diff --git a/app-arch/xar/files/xar-1.5.2-respect_ldflags.patch b/app-arch/xar/files/xar-1.5.2-respect_ldflags.patch new file mode 100644 index 000000000000..1ac090d94863 --- /dev/null +++ b/app-arch/xar/files/xar-1.5.2-respect_ldflags.patch @@ -0,0 +1,21 @@ +diff -ur xar-1.5.2.orig/lib/Makefile.inc.in xar-1.5.2/lib/Makefile.inc.in +--- xar-1.5.2.orig/lib/Makefile.inc.in 2007-12-29 20:49:57.000000000 +0200 ++++ xar-1.5.2/lib/Makefile.inc.in 2010-04-07 01:18:59.027890429 +0300 +@@ -134,7 +134,7 @@ + $(LIBRXAR_S) : $(LIBXAR_SRCS:@srcroot@%.c=@objroot@%.o) + @mkdir -p $(@D) + ifeq (elf, @abi@) +- $(CC) -shared -Wl,-soname,$(LIBXAR_SNAME) -o $@ $+ @LIBS@ ++ $(CC) -shared -Wl,-soname,$(LIBXAR_SNAME) -o $@ $+ $(LDFLAGS) @LIBS@ + endif + ifeq (macho, @abi@) + $(CC) -dynamiclib -compatibility_version @LIB_REV@ -current_version @LIB_REV@ -install_name @abs_objroot@$(LIBRXAR_S) -o $@ $+ $(LDFLAGS) @LIBS@ +@@ -150,7 +150,7 @@ + $(LIBXAR_S) : $(LIBXAR_SRCS:@srcroot@%.c=@objroot@%.o) + @mkdir -p $(@D) + ifeq (elf, @abi@) +- $(CC) -shared -Wl,-soname,$(LIBXAR_SNAME) -o $@ $+ @LIBS@ ++ $(CC) -shared -Wl,-soname,$(LIBXAR_SNAME) -o $@ $+ $(LDFLAGS) @LIBS@ + endif + ifeq (macho, @abi@) + $(CC) -dynamiclib -compatibility_version @LIB_REV@ -current_version @LIB_REV@ -install_name $(LIBDIR)/$(LIBXAR_SNAME) -o $@ $+ $(LDFLAGS) @LIBS@ diff --git a/app-arch/xar/files/xar-1.6.1-ext2.patch b/app-arch/xar/files/xar-1.6.1-ext2.patch new file mode 100644 index 000000000000..da413b03e522 --- /dev/null +++ b/app-arch/xar/files/xar-1.6.1-ext2.patch @@ -0,0 +1,24 @@ +--- a/lib/ext2.c.orig ++++ b/lib/ext2.c +@@ -139,8 +139,10 @@ + if(! (flags & ~EXT2_NOCOMPR_FL) ) + x_addprop(f, "NoCompBlock"); + #endif ++#ifdef EXT2_ECOMPR_FL + if(! (flags & ~EXT2_ECOMPR_FL) ) + x_addprop(f, "CompError"); ++#endif + if(! (flags & ~EXT2_BTREE_FL) ) + x_addprop(f, "BTree"); + if(! (flags & ~EXT2_INDEX_FL) ) +@@ -225,8 +227,10 @@ + if( e2prop_get(f, "NoCompBlock", (char **)&tmp) == 0 ) + flags |= EXT2_NOCOMPR_FL ; + #endif ++#ifdef EXT2_ECOMPR_FL + if( e2prop_get(f, "CompError", (char **)&tmp) == 0 ) + flags |= EXT2_ECOMPR_FL ; ++#endif + if( e2prop_get(f, "BTree", (char **)&tmp) == 0 ) + flags |= EXT2_BTREE_FL ; + if( e2prop_get(f, "HashIndexed", (char **)&tmp) == 0 ) diff --git a/app-arch/xar/metadata.xml b/app-arch/xar/metadata.xml new file mode 100644 index 000000000000..0596745d09b9 --- /dev/null +++ b/app-arch/xar/metadata.xml @@ -0,0 +1,19 @@ + + + + + + The XAR project aims to provide an easily extensible archive format. + Important design decisions include an easily extensible XML table of + contents for random access to archived files, storing the toc at the + beginning of the archive to allow for efficient handling of streamed + archives, the ability to handle files of arbitrarily large sizes, the + ability to choose independent encodings for individual files in the + archive, the ability to store checksums for individual files in both + compressed and uncompressed form, and the ability to query the table of + content's rich meta-data. + + + mackyle/xar + + diff --git a/app-arch/xar/xar-1.5.2-r1.ebuild b/app-arch/xar/xar-1.5.2-r1.ebuild new file mode 100644 index 000000000000..4f493f664b6a --- /dev/null +++ b/app-arch/xar/xar-1.5.2-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit autotools base eutils + +DESCRIPTION="An easily extensible archive format" +HOMEPAGE="https://github.com/mackyle/xar" +SRC_URI="https://github.com/mackyle/${PN}/archive/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="alpha amd64 hppa ia64 ~ppc ~ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="acl +bzip2" + +DEPEND="dev-libs/openssl + dev-libs/libxml2 + sys-libs/zlib + acl? ( sys-apps/acl ) + bzip2? ( app-arch/bzip2 )" +RDEPEND="${DEPEND}" + +DOCS=( TODO ) +PATCHES=( "${FILESDIR}/${P}-automagic_acl_and_bzip2.patch" + "${FILESDIR}/${P}-respect_ldflags.patch" ) + +src_prepare() { + base_src_prepare + eautoconf +} + +src_configure() { + econf $(use_enable acl) $(use_enable bzip2) +} diff --git a/app-arch/xar/xar-1.6.1-r1.ebuild b/app-arch/xar/xar-1.6.1-r1.ebuild new file mode 100644 index 000000000000..6e7d19808e11 --- /dev/null +++ b/app-arch/xar/xar-1.6.1-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools ltprune + +DESCRIPTION="An easily extensible archive format" +HOMEPAGE="https://github.com/mackyle/xar" +SRC_URI="mirror://github/mackyle/${PN}/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="alpha amd64 ~hppa ia64 ~ppc ~ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="+bzip2 libressl" + +DEPEND=" + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + bzip2? ( app-arch/bzip2 ) + sys-libs/zlib +" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}"/${P}-ext2.patch ) + +src_prepare() { + default + eautoconf +} + +src_configure() { + econf \ + $(use_with bzip2) \ + --disable-static +} + +src_install() { + default + prune_libtool_files +} -- cgit v1.2.3