diff options
Diffstat (limited to 'app-arch/zopfli')
-rw-r--r-- | app-arch/zopfli/Manifest | 8 | ||||
-rw-r--r-- | app-arch/zopfli/files/zopfli-1.0.1-makefile.patch | 55 | ||||
-rw-r--r-- | app-arch/zopfli/metadata.xml | 17 | ||||
-rw-r--r-- | app-arch/zopfli/zopfli-1.0.0_p20140705.ebuild | 25 | ||||
-rw-r--r-- | app-arch/zopfli/zopfli-1.0.1-r2.ebuild | 41 |
5 files changed, 146 insertions, 0 deletions
diff --git a/app-arch/zopfli/Manifest b/app-arch/zopfli/Manifest new file mode 100644 index 000000000000..e49c80300941 --- /dev/null +++ b/app-arch/zopfli/Manifest @@ -0,0 +1,8 @@ +AUX zopfli-1.0.1-makefile.patch 1979 SHA256 199eae957ea8da28424f5c0e25c1525a2bebcde29951311a2b1baa613cee5025 SHA512 f26b02d88df75d9ce9bf8d86ae5bbf3cdc548be14a81939d26cbfbb2b6b29b74fcf40a62dd4ad20650e7c147d8234f6a0d5d82ff8780c2a1d54ae59825cd43b9 WHIRLPOOL 93cac6f840b3ab75b72edb3118bff126c2546048529c4d962bed89b413caa7ac265307e79b6cd2d789bf3906a55b8156e65e72c1279470c4b0591c7d0e338574 +DIST zopfli-1.0.0_p20140705.tar.gz 125759 SHA256 d0a1db54477c8da8b59b4ffe620e7fcb0bcb9192d6e5ef08d849bb463c05ffd1 SHA512 ce5b3eb016b0d734a775dbb45842de4aa4a00bc1490edfdbbf81c4640da94994d08f336b313c45b785e17c61ecf58f370edb2cb6523c963798cad739af2282ca WHIRLPOOL 9affa8b1eb7ec9d509c90e26a385644cbf1f7c031813eab5986c297f47881454a74023cb1548e338cebe8c293d0f8876c048998185035377fa5a187d62e46fac +DIST zopfli-1.0.1.tar.gz 128178 SHA256 29743d727a4e0ecd1b93e0bf89476ceeb662e809ab2e6ab007a0b0344800e9b4 SHA512 51d4b2d990e6785e86f0e0104325723c9a7c3b8bf6925ef694b6696f2238eaafff2ca625495a676874ecc1704df7d685e5234b0c601e5804c1c293242e113430 WHIRLPOOL 04578ab35c952b268931d309c29b9de9c5adf3646d02848abee5388520e26bff579d970da9049bfd6fa81cefe2eac1437d499af8dee81d592a6244ce698c8ad8 +EBUILD zopfli-1.0.0_p20140705.ebuild 677 SHA256 df58df6d07385995b6c65575e206b4ef3621a8311f21911ac7b118bb9758eb61 SHA512 2ed577374b97e3bae087491a10b88d0967930a5de22663bf489844a0577f743bb6562d08b21c1df05396c82c5af0c16f843fde738a5eff37135cc8b2051b615c WHIRLPOOL 8e26563ad2906f0b034f6aab716c7a8285cd1cfee2a910f541685c328adfa399261dd87985fb4a9bc44e1fe70cd218f11808280b7e06d48abef723b46af09399 +EBUILD zopfli-1.0.1-r2.ebuild 922 SHA256 345fedf84a01d8031ea7a10a18d75bdc0bbecceae02be8b25dddb17f4f64ecbd SHA512 acabf1c21f7d8f4c02fa5f6569f8bfdc1b4b5303a480bde95b762a84c04e7f67aba16761f358c65d14bfc9735e3157788b1317dc2e2b8b1352acbb92aa4a4d33 WHIRLPOOL 3634dbf7c0a7541e1f2b5548e62ed625b0db14220f413f42972026f8b67b6679242c69b0fa02bf6322264c26515d4e01e1aec94b8dbe1891d03d06764ceb0091 +MISC ChangeLog 3732 SHA256 9da218bf2f6e4ac6101cd7d0e24f4875bf68f34c6e087baddb77faf3e83c8fe4 SHA512 c5d14dc3da2fcad48cb39ba04bba7ab52395ec88cb91f81f8fd32fe157b5ea18c34e970ed520928d6b68480f4dbd269bb4dd434f87440e8f909509b46eb4e356 WHIRLPOOL 9c3e52622b95ff0cd89c8850c106963753f74f68a655d23168e120cf1bc280242633ee0cb2b4bbcce692d750b225e9b1fccec7de9bf98ec22dba92f92ccd4e7f +MISC ChangeLog-2015 2752 SHA256 f7bfa0d70394c21ef8e464f58348e99d5b88bfd6d6b62aec55b702ad9718d632 SHA512 e2c35a7bc5a71d3590bce764ce311bd5bb02236dcb57102c8efa997296849d149391705af74cb3ce2fa1d3b1881b6e282dff4eb331365b06eddff3712ea7980c WHIRLPOOL aa7f00d54295594c3122b551dbeb14c6c2cbcab714e36c59ed08f48aa20288ea8ea378fc03604fc36407281c3cbe6edcd0f4c5ad46e9cb869cc37d85f4a18cf1 +MISC metadata.xml 665 SHA256 f9b3e3b1e84c974032fb7d664d650bd66b6df11e146329d40f3cc0a3d4545d83 SHA512 edd29a89c8492a2582f69bb0102b33f509830ac861961965aa9a1c280413bd01145baed1ef08428055a82fc27b4cf17c99de4353b1d2f457c74dfe20879838ac WHIRLPOOL 70d46661a9349764a62af24e76a382144701ae58f15b0a9186e10b6117619a87fd798dabb0b55a5c411c7fc3c760c24b2e0c0d97d28b7b37cd6436064774ccd9 diff --git a/app-arch/zopfli/files/zopfli-1.0.1-makefile.patch b/app-arch/zopfli/files/zopfli-1.0.1-makefile.patch new file mode 100644 index 000000000000..a4a7dc280912 --- /dev/null +++ b/app-arch/zopfli/files/zopfli-1.0.1-makefile.patch @@ -0,0 +1,55 @@ +--- zopfli-zopfli-1.0.1/Makefile ++++ zopfli-zopfli-1.0.1/Makefile +@@ -1,8 +1,10 @@ +-CC = gcc +-CXX = g++ ++CC ?= gcc ++CXX ?= g++ + +-CFLAGS = -W -Wall -Wextra -ansi -pedantic -lm -O2 +-CXXFLAGS = -W -Wall -Wextra -ansi -pedantic -O2 ++CFLAGS += -W -Wall -Wextra -ansi -pedantic ++CXXFLAGS += -W -Wall -Wextra -ansi -pedantic ++LDFLAGS += -L. ++LIBS = -lm + + ZOPFLILIB_SRC = src/zopfli/blocksplitter.c src/zopfli/cache.c\ + src/zopfli/deflate.c src/zopfli/gzip_container.c\ +@@ -18,24 +20,28 @@ + + .PHONY: zopfli zopflipng + ++all: zopfli zopflipng ++ + # Zopfli binary +-zopfli: +- $(CC) $(ZOPFLILIB_SRC) $(ZOPFLIBIN_SRC) $(CFLAGS) -o zopfli ++zopfli: libzopfli ++ $(CC) $(ZOPFLIBIN_SRC) $(CFLAGS) $(LDFLAGS) $(LIBS) -lzopfli -o zopfli + + # Zopfli shared library + libzopfli: + $(CC) $(ZOPFLILIB_SRC) $(CFLAGS) -fPIC -c +- $(CC) $(ZOPFLILIB_OBJ) $(CFLAGS) -shared -Wl,-soname,libzopfli.so.1 -o libzopfli.so.1.0.1 ++ $(CC) $(ZOPFLILIB_OBJ) $(CFLAGS) $(LDFLAGS) $(LIBS) -shared -Wl,-soname,libzopfli.so.1 -o libzopfli.so.1.0.1 ++ @ln -s libzopfli.so.1.0.1 libzopfli.so.1 ++ @ln -s libzopfli.so.1.0.1 libzopfli.so + + # ZopfliPNG binary +-zopflipng: +- $(CC) $(ZOPFLILIB_SRC) $(CFLAGS) -c +- $(CXX) $(ZOPFLILIB_OBJ) $(LODEPNG_SRC) $(ZOPFLIPNGLIB_SRC) $(ZOPFLIPNGBIN_SRC) $(CFLAGS) -o zopflipng ++zopflipng: libzopflipng ++ $(CXX) $(ZOPFLILIB_OBJ) $(LODEPNG_SRC) $(ZOPFLIPNGBIN_SRC) $(CFLAGS) $(LDFLAGS) $(LIBS) -lzopflipng -o zopflipng + + # ZopfliPNG shared library +-libzopflipng: +- $(CC) $(ZOPFLILIB_SRC) $(CFLAGS) -fPIC -c +- $(CXX) $(ZOPFLILIB_OBJ) $(LODEPNG_SRC) $(ZOPFLIPNGLIB_SRC) $(CFLAGS) -fPIC --shared -Wl,-soname,libzopflipng.so.1 -o libzopflipng.so.1.0.0 ++libzopflipng: libzopfli ++ $(CXX) $(ZOPFLILIB_OBJ) $(LODEPNG_SRC) $(ZOPFLIPNGLIB_SRC) $(CFLAGS) $(LDFLAGS) $(LIBS) -fPIC --shared -Wl,-soname,libzopflipng.so.1 -o libzopflipng.so.1.0.0 ++ @ln -s libzopflipng.so.1.0.0 libzopflipng.so.1 ++ @ln -s libzopflipng.so.1.0.0 libzopflipng.so + + # Remove all libraries and binaries + clean: diff --git a/app-arch/zopfli/metadata.xml b/app-arch/zopfli/metadata.xml new file mode 100644 index 000000000000..634b54aec83c --- /dev/null +++ b/app-arch/zopfli/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>alex_y_xu@yahoo.ca</email> + <name>Alex Xu</name> + <description>Proxied maintainer; set to assignee in all bugs</description> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription>Compression library programmed in C to perform very good, but slow, deflate or zlib compression.</longdescription> + <upstream> + <remote-id type="github">google/zopfli</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-arch/zopfli/zopfli-1.0.0_p20140705.ebuild b/app-arch/zopfli/zopfli-1.0.0_p20140705.ebuild new file mode 100644 index 000000000000..13820f174c00 --- /dev/null +++ b/app-arch/zopfli/zopfli-1.0.0_p20140705.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils multilib toolchain-funcs vcs-snapshot + +DESCRIPTION="Very good, but slow, deflate or zlib compression" +HOMEPAGE="https://github.com/Hello71/zopfli/" +SRC_URI="https://github.com/Hello71/zopfli/archive/1c07f374419ccb352412fd6403acc2b59ab6cce7.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0/1" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" + +src_prepare() { + tc-export CC CXX + + epatch_user +} + +src_install() { + emake DESTDIR="${D}" prefix="${EPREFIX}/usr" libdir="${EPREFIX}/usr/$(get_libdir)" install + dodoc CONTRIBUTORS README README.${PN}png +} diff --git a/app-arch/zopfli/zopfli-1.0.1-r2.ebuild b/app-arch/zopfli/zopfli-1.0.1-r2.ebuild new file mode 100644 index 000000000000..cb39213529a9 --- /dev/null +++ b/app-arch/zopfli/zopfli-1.0.1-r2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +DESCRIPTION="Very good, but slow, deflate or zlib compression" +HOMEPAGE="https://github.com/google/zopfli/" +SRC_URI="https://github.com/google/zopfli/archive/${P}.tar.gz" + +S="${WORKDIR}/${PN}-${P}" + +LICENSE="Apache-2.0" +SLOT="0/1" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + +DOCS=( CONTRIBUTORS README README.zopflipng ) + +PATCHES=( "${FILESDIR}"/${P}-makefile.patch ) + +# zopflipng statically links an exact version of LodePNG (https://github.com/lvandeve/lodepng) + +src_prepare() { + default + tc-export CC CXX +} + +# The Makefile has no install phase +src_install() { + dolib.so libzopfli.so* + doheader src/zopfli/zopfli.h + + dobin ${PN} + + # This version was erroneously not bumped to match ${PV} + dolib.so libzopflipng.so* + doheader src/zopflipng/zopflipng_lib.h + + dobin zopflipng +} |