diff options
author | Tavis Ormandy <taviso@gentoo.org> | 2003-10-31 20:14:47 +0000 |
---|---|---|
committer | Tavis Ormandy <taviso@gentoo.org> | 2003-10-31 20:14:47 +0000 |
commit | a6a2b4b0560af6f09b341d2582d676aecf407f27 (patch) | |
tree | d92b732bfb7f46b8f2f0cf1578f5f74f80c6c0a8 /app-arch/advancecomp | |
parent | initial import (diff) | |
download | gentoo-2-a6a2b4b0560af6f09b341d2582d676aecf407f27.tar.gz gentoo-2-a6a2b4b0560af6f09b341d2582d676aecf407f27.tar.bz2 gentoo-2-a6a2b4b0560af6f09b341d2582d676aecf407f27.zip |
initial import
Diffstat (limited to 'app-arch/advancecomp')
-rw-r--r-- | app-arch/advancecomp/ChangeLog | 11 | ||||
-rw-r--r-- | app-arch/advancecomp/Manifest | 4 | ||||
-rw-r--r-- | app-arch/advancecomp/advancecomp-1.8.ebuild | 32 | ||||
-rw-r--r-- | app-arch/advancecomp/files/advancecomp-bzip2-compile-plz-k-thx.diff | 62 | ||||
-rw-r--r-- | app-arch/advancecomp/files/digest-advancecomp-1.8 | 1 | ||||
-rw-r--r-- | app-arch/advancecomp/metadata.xml | 12 |
6 files changed, 121 insertions, 1 deletions
diff --git a/app-arch/advancecomp/ChangeLog b/app-arch/advancecomp/ChangeLog new file mode 100644 index 000000000000..647274cda011 --- /dev/null +++ b/app-arch/advancecomp/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-arch/advancecomp +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-arch/advancecomp/ChangeLog,v 1.1 2003/10/31 20:14:40 taviso Exp $ + +*advancecomp-1.8 (31 Oct 2003) + + 31 Oct 2003; Tavis Ormandy <taviso@gentoo.org> advancecomp-1.8.ebuild, + files/advancecomp-bzip2-compile-plz-k-thx.diff: + Initial import, thanks to Per Wigren <wigren@home.se> for providing the + ebuild this was based on in #23158 + diff --git a/app-arch/advancecomp/Manifest b/app-arch/advancecomp/Manifest index 0eb8b94b2516..553ce017d0b7 100644 --- a/app-arch/advancecomp/Manifest +++ b/app-arch/advancecomp/Manifest @@ -1,3 +1,5 @@ -MD5 13870a20222bce74855892d560e84893 advancecomp-1.8.ebuild 805 +MD5 9b668252507e25cd6f1ec429c992d0ab advancecomp-1.8.ebuild 910 +MD5 a26e221294df44b61ce58194c5c38d17 ChangeLog 490 +MD5 52b587de750eaf83b62c0205f5a890a0 metadata.xml 371 MD5 c59beca247b09c82acb8f42bf94e844c files/digest-advancecomp-1.8 67 MD5 32520f6c0bf186c37ac3922dd4ac828b files/advancecomp-bzip2-compile-plz-k-thx.diff 3811 diff --git a/app-arch/advancecomp/advancecomp-1.8.ebuild b/app-arch/advancecomp/advancecomp-1.8.ebuild new file mode 100644 index 000000000000..4f9e08524af3 --- /dev/null +++ b/app-arch/advancecomp/advancecomp-1.8.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-arch/advancecomp/advancecomp-1.8.ebuild,v 1.1 2003/10/31 20:14:40 taviso Exp $ + +DESCRIPTION="Recompress ZIP, PNG and MNGs using the Deflate 7-Zip implementation" +HOMEPAGE="http://advancemame.sourceforge.net/comp-readme.html" +SRC_URI="mirror://sourceforge/advancemame/${P}.tar.gz" +LICENSE="GPL-2 LGPL-2" +SLOT="0" +KEYWORDS="~x86 ~alpha" +IUSE="" +DEPEND="sys-libs/zlib sys-apps/bzip2" + +S=${WORKDIR}/${P} + +src_unpack() { + unpack ${A} + + # bzip2 support wont compile, heres a quick patch. + cd ${S}; epatch ${FILESDIR}/${PN}-bzip2-compile-plz-k-thx.diff +} + +src_compile() { + econf --enable-bzip2 + emake +} + +src_install() { + dobin advdef advmng advpng advzip + dodoc HISTORY AUTHORS COPYING INSTALL README + doman doc/advdef.1 doc/advmng.1 doc/advpng.1 doc/advzip.1 +} diff --git a/app-arch/advancecomp/files/advancecomp-bzip2-compile-plz-k-thx.diff b/app-arch/advancecomp/files/advancecomp-bzip2-compile-plz-k-thx.diff new file mode 100644 index 000000000000..b8741c544749 --- /dev/null +++ b/app-arch/advancecomp/files/advancecomp-bzip2-compile-plz-k-thx.diff @@ -0,0 +1,62 @@ +diff -ruN advancecomp-1.8/compress.cc advancecomp-1.8.new/compress.cc +--- advancecomp-1.8/compress.cc 2003-10-05 18:59:02.000000000 +0100 ++++ advancecomp-1.8.new/compress.cc 2003-10-31 19:32:12.000000000 +0000 +@@ -177,14 +177,14 @@ + } + + #ifdef USE_BZIP2 +-bool compress_bzip2(const unsigned char* in_data, unsigned in_size, unsigned char* out_data, unsigned& out_size, int blocksize, int workfactor) { +- return BZ2_bzBuffToBuffCompress(out_data,&out_size,const_cast<unsigned char*>(in_data),in_size,blocksize,0,workfactor) == BZ_OK; ++bool compress_bzip2(const char* in_data, unsigned in_size, char* out_data, unsigned& out_size, int blocksize, int workfactor) { ++ return BZ2_bzBuffToBuffCompress(out_data,&out_size,const_cast<char*>(in_data),in_size,blocksize,0,workfactor) == BZ_OK; + } + +-bool decompress_bzip2(const unsigned char* in_data, unsigned in_size, unsigned char* out_data, unsigned out_size) { ++bool decompress_bzip2(const char* in_data, unsigned in_size, char* out_data, unsigned out_size) { + unsigned size = out_size; + +- if (BZ2_bzBuffToBuffDecompress(out_data,&size,const_cast<unsigned char*>(in_data),in_size,0,0)!=BZ_OK) ++ if (BZ2_bzBuffToBuffDecompress(out_data,&size,const_cast< char*>(in_data),in_size,0,0)!=BZ_OK) + return false; + + if (size != out_size) +diff -ruN advancecomp-1.8/compress.h advancecomp-1.8.new/compress.h +--- advancecomp-1.8/compress.h 2003-10-05 18:59:10.000000000 +0100 ++++ advancecomp-1.8.new/compress.h 2003-10-31 19:31:25.000000000 +0000 +@@ -40,8 +40,8 @@ + bool decompress_deflate_zlib(const unsigned char* in_data, unsigned in_size, unsigned char* out_data, unsigned out_size); + bool compress_deflate_zlib(const unsigned char* in_data, unsigned in_size, unsigned char* out_data, unsigned& out_size, int compression_level, int strategy, int mem_level); + +-bool decompress_bzip2(const unsigned char* in_data, unsigned in_size, unsigned char* out_data, unsigned out_size); +-bool compress_bzip2(const unsigned char* in_data, unsigned in_size, unsigned char* out_data, unsigned& out_size, int blocksize, int workfactor); ++bool decompress_bzip2(const char* in_data, unsigned in_size, char* out_data, unsigned out_size); ++bool compress_bzip2(const char* in_data, unsigned in_size, char* out_data, unsigned& out_size, int blocksize, int workfactor); + + bool decompress_rfc1950_zlib(const unsigned char* in_data, unsigned in_size, unsigned char* out_data, unsigned out_size); + bool compress_rfc1950_zlib(const unsigned char* in_data, unsigned in_size, unsigned char* out_data, unsigned& out_size, int compression_level, int strategy, int mem_level); +diff -ruN advancecomp-1.8/stamp-h1 advancecomp-1.8.new/stamp-h1 +--- advancecomp-1.8/stamp-h1 1970-01-01 01:00:00.000000000 +0100 ++++ advancecomp-1.8.new/stamp-h1 2003-10-31 19:32:35.000000000 +0000 +@@ -0,0 +1 @@ ++timestamp for config.h +diff -ruN advancecomp-1.8/zipsh.cc advancecomp-1.8.new/zipsh.cc +--- advancecomp-1.8/zipsh.cc 2003-02-10 19:25:05.000000000 +0000 ++++ advancecomp-1.8.new/zipsh.cc 2003-10-31 19:34:31.000000000 +0000 +@@ -38,7 +38,7 @@ + } + #ifdef USE_BZIP2 + } else if (info.compression_method == ZIP_METHOD_BZIP2) { +- if (!decompress_bzip2(data,compressed_size_get(),uncompressed_data,uncompressed_size_get())) { ++ if (!decompress_bzip2((char *)data,compressed_size_get(),(char *)uncompressed_data,uncompressed_size_get())) { + data_free(uncompressed_data); + throw error() << "Invalid compressed data on file " << name_get(); + } +@@ -246,7 +246,7 @@ + c1_met = ZIP_METHOD_BZIP2; + c1_fla = 0; + +- if (!compress_bzip2(uncompressed_data,uncompressed_size_get(),c1_data,c1_size,bzip2_level,bzip2_workfactor)) { ++ if (!compress_bzip2((char *)uncompressed_data,uncompressed_size_get(),(char *)c1_data,c1_size,bzip2_level,bzip2_workfactor)) { + data_free(c1_data); + c1_data = 0; + } diff --git a/app-arch/advancecomp/files/digest-advancecomp-1.8 b/app-arch/advancecomp/files/digest-advancecomp-1.8 new file mode 100644 index 000000000000..da8d6f3ec607 --- /dev/null +++ b/app-arch/advancecomp/files/digest-advancecomp-1.8 @@ -0,0 +1 @@ +MD5 eb98f9ff5e5bf061d6b73b4f604f21df advancecomp-1.8.tar.gz 585627 diff --git a/app-arch/advancecomp/metadata.xml b/app-arch/advancecomp/metadata.xml new file mode 100644 index 000000000000..5588c9797148 --- /dev/null +++ b/app-arch/advancecomp/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>taviso@gentoo.org</email> + <name>Tavis Ormandy</name> +</maintainer> +<longdescription> +AdvanceCOMP is a set of recompression utilities for .PNG, .MNG, .ZIP and .GZ files +</longdescription> +</pkgmetadata> |