summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2010-02-09 20:19:49 +0000
committerJustin Lecher <jlec@gentoo.org>2010-02-09 20:19:49 +0000
commit78f8057baae6bfeae676f24e73b3a5c8d6ca3905 (patch)
tree1a043b6d55f1541203f2b6d4edbd2f28d173dbf7 /app-arch/lbzip2
parentapp-emacs/aspectj4emacs removal, bug 175570. (diff)
downloadhistorical-78f8057baae6bfeae676f24e73b3a5c8d6ca3905.tar.gz
historical-78f8057baae6bfeae676f24e73b3a5c8d6ca3905.tar.bz2
historical-78f8057baae6bfeae676f24e73b3a5c8d6ca3905.zip
Added on request of bug 264002, thanks Daniel Lin for initial ebuild
Package-Manager: portage-2.2_rc62/cvs/Linux x86_64
Diffstat (limited to 'app-arch/lbzip2')
-rw-r--r--app-arch/lbzip2/ChangeLog10
-rw-r--r--app-arch/lbzip2/Manifest15
-rw-r--r--app-arch/lbzip2/files/0.20-Makefile.patch45
-rw-r--r--app-arch/lbzip2/lbzip2-0.20.ebuild58
-rw-r--r--app-arch/lbzip2/metadata.xml12
5 files changed, 140 insertions, 0 deletions
diff --git a/app-arch/lbzip2/ChangeLog b/app-arch/lbzip2/ChangeLog
new file mode 100644
index 000000000000..05c61003aaa3
--- /dev/null
+++ b/app-arch/lbzip2/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for app-arch/lbzip2
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-arch/lbzip2/ChangeLog,v 1.1 2010/02/09 20:19:48 jlec Exp $
+
+*lbzip2-0.20 (09 Feb 2010)
+
+ 09 Feb 2010; Justin Lecher (jlec) <jlec@gentoo.org>
+ +files/0.20-Makefile.patch, +lbzip2-0.20.ebuild, +metadata.xml:
+ Added on request of bug 264002
+ thanks Daniel Lin for initial ebuild
diff --git a/app-arch/lbzip2/Manifest b/app-arch/lbzip2/Manifest
new file mode 100644
index 000000000000..61ab1c07eab2
--- /dev/null
+++ b/app-arch/lbzip2/Manifest
@@ -0,0 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX 0.20-Makefile.patch 1421 RMD160 8ddbb18af454e17b88af17778cf428a03df1daf1 SHA1 dbfed4e90b83cb55d63a82743a1feb4152066d86 SHA256 6e9a50209ce7523af3543b7323ef6c385282d2e6467d6dfa41614142cd7321d4
+DIST lbzip2-0.20.tar.gz 75983 RMD160 e2fc720341bcfba65370411bd67b4a484cb41426 SHA1 5ec3dd318c55c8ff9b24ed06a4a4a0cfdae4b71e SHA256 d73942a99f1158bc59bfc5828a2abbe00d738a961651e050fb362621825482da
+EBUILD lbzip2-0.20.ebuild 1420 RMD160 17d99463dba9655d317e51c51aefcf3b07b707e3 SHA1 2ae2455b51923ba1924353579631aae1de65904f SHA256 e9f1143bd6dcdea2ba0692a6f77a86356e84718ec38418571006cc1dbe15706d
+MISC ChangeLog 421 RMD160 5ccb5e238b387e2755f26d58f8a2fc637cc91de6 SHA1 a5c6dc6d309e81c778e1fa7b625227c347dce8bd SHA256 ef9e34837e62e11fc41df5b6ea98951ceb5af3f0bdadb64974084fba01ffae5d
+MISC metadata.xml 356 RMD160 b494f5f323ebda03ffc9db73b486bd5e5bde39aa SHA1 c5b72e048a77edd25f33902bf800150def378278 SHA256 a35f53eb2dd594d9062144ab0121c23a34bbbaa4b7e84ee2bd5f3406dd8eac1d
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.14 (GNU/Linux)
+
+iEYEARECAAYFAktxw2sACgkQgAnW8HDreRYYkwCgltj4wcykRcp6vsH5QGlfNupy
+5qMAn3QGdPI8MH1EEjUrleI7oYjjy3sv
+=QcfF
+-----END PGP SIGNATURE-----
diff --git a/app-arch/lbzip2/files/0.20-Makefile.patch b/app-arch/lbzip2/files/0.20-Makefile.patch
new file mode 100644
index 000000000000..19f86380e5dd
--- /dev/null
+++ b/app-arch/lbzip2/files/0.20-Makefile.patch
@@ -0,0 +1,45 @@
+--- Makefile 2009-04-04 00:33:49.000000000 +0200
++++ Makefile.new 2009-04-15 21:12:02.886390550 +0200
+@@ -1,34 +1,27 @@
+ # Makefile,v 1.9 2009-04-03 22:33:49 lacos Exp
+ .POSIX:
+
+-CC=gcc
+-CFLAGS=$$($(SHELL) lfs.sh CFLAGS) -D _XOPEN_SOURCE=500 -pipe -ansi -pedantic \
+- -O2
+-
+-
+-
+-
+-LDFLAGS=-s $$($(SHELL) lfs.sh LDFLAGS)
+-LIBS=-l pthread -l bz2 $$($(SHELL) lfs.sh LIBS)
++CFLAGS += -D _XOPEN_SOURCE=500
++LIBS=-lpthread -lbz2
+
+ lbzip2: main.o lbzip2.o lbunzip2.o lbunzip2_single.o lacos_rbtree.o
+- $(CC) -o lbzip2 $(LDFLAGS) main.o lbzip2.o lbunzip2.o \
++ $(CC) $(CPPFLAGS) $(LDFLAGS) -o lbzip2 main.o lbzip2.o lbunzip2.o \
+ lbunzip2_single.o lacos_rbtree.o $(LIBS)
+
+ main.o: main.c main.h lbunzip2_single.h lbunzip2.h lbzip2.h
+- $(CC) $(CFLAGS) -c main.c
++ $(CC) $(CFLAGS) $(CPPFLAGS) -c main.c
+
+ lbzip2.o: lbzip2.c main.h lbzip2.h lacos_rbtree.h
+- $(CC) $(CFLAGS) -c lbzip2.c
++ $(CC) $(CFLAGS) $(CPPFLAGS) -c lbzip2.c
+
+ lbunzip2.o: lbunzip2.c main.h lbunzip2.h lacos_rbtree.h
+- $(CC) $(CFLAGS) -c lbunzip2.c
++ $(CC) $(CFLAGS) $(CPPFLAGS) -c lbunzip2.c
+
+ lbunzip2_single.o: lbunzip2_single.c main.h lbunzip2_single.h
+- $(CC) $(CFLAGS) -c lbunzip2_single.c
++ $(CC) $(CFLAGS) $(CPPFLAGS) -c lbunzip2_single.c
+
+ lacos_rbtree.o: lacos_rbtree.c lacos_rbtree.h
+- $(CC) $(CFLAGS) -c lacos_rbtree.c
++ $(CC) $(CFLAGS) $(CPPFLAGS) -c lacos_rbtree.c
+
+ clean:
+ rm -f lbzip2 main.o lbzip2.o lbunzip2.o lbunzip2_single.o \
diff --git a/app-arch/lbzip2/lbzip2-0.20.ebuild b/app-arch/lbzip2/lbzip2-0.20.ebuild
new file mode 100644
index 000000000000..3c58a84ba727
--- /dev/null
+++ b/app-arch/lbzip2/lbzip2-0.20.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-arch/lbzip2/lbzip2-0.20.ebuild,v 1.1 2010/02/09 20:19:48 jlec Exp $
+
+EAPI="3"
+
+inherit eutils flag-o-matic toolchain-funcs
+
+DESCRIPTION="Pthreads-based parallel bzip2/bunzip2 filter, passable to GNU tar"
+HOMEPAGE="http://lacos.hu/"
+SRC_URI="http://lacos.web.elte.hu/pub/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="symlink test"
+
+RDEPEND="app-arch/bzip2"
+DEPEND="${REDEPEND}
+ test? (
+ app-shells/dash
+ sys-process/time
+ )"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-Makefile.patch
+}
+
+src_compile() {
+ append-lfs-flags
+ emake CC=$(tc-getCC) || die "emake failed"
+}
+
+src_test() {
+ if [ -t 0 ] || return; then
+ rm -rf "${T}/scratch" "${T}/results" "${T}/rnd"
+ hexdump -n 10485760 /dev/urandom > "${T}/rnd"
+ emake -j1 SHELL="${EPREFIX}"/bin/dash PATH="${S}:${PATH}" TESTFILE="${T}/rnd" check \
+ || die "make check failed"
+ else
+ ewarn "make check must be run attached to a terminal"
+ fi
+}
+
+src_install() {
+ dobin ${PN} || die "Installation of ${PN} failed"
+ dodoc ChangeLog README || die "no docs"
+ doman ${PN}.1 || die "no man"
+ insinto /usr/share/${PN}
+ doins corr-perf.sh malloc_trace.pl || die
+
+ if use symlink; then
+ dosym /usr/bin/${PN} /usr/bin/gzip || die
+ dosym /usr/bin/un${PN} /usr/bin/gunzip || die
+ fi
+}
diff --git a/app-arch/lbzip2/metadata.xml b/app-arch/lbzip2/metadata.xml
new file mode 100644
index 000000000000..473b53a0a4eb
--- /dev/null
+++ b/app-arch/lbzip2/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>jlec@gentoo.org</email>
+</maintainer>
+ <longdescription lang="en">
+ A parallel implementation of bzip2 for modern
+ multi-processor, multi-core machines.
+ </longdescription>
+</pkgmetadata>