summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-fs/fuse-zip')
-rw-r--r--sys-fs/fuse-zip/Manifest4
-rw-r--r--sys-fs/fuse-zip/files/fuse-zip-0.2.13-as-needed.patch11
-rw-r--r--sys-fs/fuse-zip/files/libzip-fix-0.10.patch24
-rw-r--r--sys-fs/fuse-zip/fuse-zip-0.2.12.ebuild30
-rw-r--r--sys-fs/fuse-zip/fuse-zip-0.2.13.ebuild42
-rw-r--r--sys-fs/fuse-zip/fuse-zip-0.3.0.ebuild39
-rw-r--r--sys-fs/fuse-zip/fuse-zip-0.4.0.ebuild37
-rw-r--r--sys-fs/fuse-zip/metadata.xml13
8 files changed, 200 insertions, 0 deletions
diff --git a/sys-fs/fuse-zip/Manifest b/sys-fs/fuse-zip/Manifest
new file mode 100644
index 000000000000..c9134db552f4
--- /dev/null
+++ b/sys-fs/fuse-zip/Manifest
@@ -0,0 +1,4 @@
+DIST fuse-zip-0.2.12.tar.gz 181246 SHA256 c77b4e461dfe83acdb3d8cfbc6fe456592314756d20061864f51a389dfcc2c69
+DIST fuse-zip-0.2.13.tar.gz 185431 SHA256 e41c0746e3419db8f519fad7e819ef72ddb48ffca2de52773f038016aacd9804
+DIST fuse-zip-0.3.0.tar.gz 662401 SHA256 7b0960e40da4e98f40a12c26c032fee99f683bea59bede24653de2f139d08543 SHA512 170026a1fb80302c2319d46379db65686198cb162308fd5a2bffff9c047c176dfc8a8a4b94fc6d33d53ed7de6d65b39779c0e03d944e4284625a4140e521001f WHIRLPOOL 12da9e2e5954b47b0a16924f4358c33607a195c90f2a1373604390656e65730ccac7294cdb4032012361d037970cf35023a1136d6be52377b094f63d1e8a1349
+DIST fuse-zip-0.4.0.tar.gz 671498 SHA256 db9eb13aa250061eaa7df6b1ee5022dbea54089094af94cc3d1767b63bdc9ca7 SHA512 0224136a437884e7899522b80ae0e1e8c2601e31658ce7ac73bf9267f65ed629792db9c76054fe9ee007f7bc71167d785cc22659123c2b287fadb13a01c58ea8 WHIRLPOOL 031bd37c5fa331bb78e3736e6279358e93583dc5dae47905c603bec90d1754c189a2b1efb9978cb6b6b78fa99dcf5171760804ca5609e737730b7a06c5d67416
diff --git a/sys-fs/fuse-zip/files/fuse-zip-0.2.13-as-needed.patch b/sys-fs/fuse-zip/files/fuse-zip-0.2.13-as-needed.patch
new file mode 100644
index 000000000000..9394b7b36e41
--- /dev/null
+++ b/sys-fs/fuse-zip/files/fuse-zip-0.2.13-as-needed.patch
@@ -0,0 +1,11 @@
+Index: fuse-zip-0.2.13/Makefile
+===================================================================
+--- fuse-zip-0.2.13.orig/Makefile
++++ fuse-zip-0.2.13/Makefile
+@@ -1,5 +1,5 @@
+ DEST=fuse-zip
+-LIBS=$(shell pkg-config fuse --libs) $(shell pkg-config libzip --libs) -Llib -lfusezip
++LIBS=-lfusezip $(shell pkg-config fuse --libs) $(shell pkg-config libzip --libs) -Llib
+ LIB=lib/libfusezip.a
+ CXXFLAGS=-g -O2 -Wall -Wextra
+ RELEASE_CXXFLAGS=-O2 -Wall -Wextra
diff --git a/sys-fs/fuse-zip/files/libzip-fix-0.10.patch b/sys-fs/fuse-zip/files/libzip-fix-0.10.patch
new file mode 100644
index 000000000000..f2348e5f1bab
--- /dev/null
+++ b/sys-fs/fuse-zip/files/libzip-fix-0.10.patch
@@ -0,0 +1,24 @@
+diff -ru fuse-zip-0.2.13/lib/bigBuffer.cpp fuse-zip-0.2.13.new//lib/bigBuffer.cpp
+--- fuse-zip-0.2.13/lib/bigBuffer.cpp 2010-12-06 12:34:32.000000000 -0500
++++ fuse-zip-0.2.13.new//lib/bigBuffer.cpp 2011-09-28 21:40:01.294946957 -0400
+@@ -236,7 +236,7 @@
+ len = offset;
+ }
+
+-ssize_t BigBuffer::zipUserFunctionCallback(void *state, void *data, size_t len, enum zip_source_cmd cmd) {
++zip_int64_t BigBuffer::zipUserFunctionCallback(void *state, void *data, zip_uint64_t len, enum zip_source_cmd cmd) {
+ CallBackStruct *b = (CallBackStruct*)state;
+ switch (cmd) {
+ case ZIP_SOURCE_OPEN: {
+diff -ru fuse-zip-0.2.13/lib/bigBuffer.h fuse-zip-0.2.13.new//lib/bigBuffer.h
+--- fuse-zip-0.2.13/lib/bigBuffer.h 2010-12-06 12:34:32.000000000 -0500
++++ fuse-zip-0.2.13.new//lib/bigBuffer.h 2011-09-28 21:40:23.203719133 -0400
+@@ -52,7 +52,7 @@
+ * never called because read() always successfull.
+ * See zip_source_function(3) for details.
+ */
+- static ssize_t zipUserFunctionCallback(void *state, void *data, size_t len, enum zip_source_cmd cmd);
++ static zip_int64_t zipUserFunctionCallback(void *state, void *data, zip_uint64_t len, enum zip_source_cmd cmd);
+
+ /**
+ * Return number of chunks needed to keep 'offset' bytes.
diff --git a/sys-fs/fuse-zip/fuse-zip-0.2.12.ebuild b/sys-fs/fuse-zip/fuse-zip-0.2.12.ebuild
new file mode 100644
index 000000000000..0c7f28c84088
--- /dev/null
+++ b/sys-fs/fuse-zip/fuse-zip-0.2.12.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+
+DESCRIPTION="FUSE file system to navigate, extract, create and modify ZIP archives based on libzip"
+HOMEPAGE="http://code.google.com/p/fuse-zip/"
+SRC_URI="http://fuse-zip.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-libs/libzip
+ sys-fs/fuse"
+RDEPEND="${DEPEND}"
+
+RESTRICT="test"
+
+src_prepare() {
+ # Fix strip than installing fuse-zip
+ sed -i -e 's/install -m 755 -s/install -m 755/' Makefile || die "sed failed"
+}
+
+src_install() {
+ emake INSTALLPREFIX="${D}"/usr install || die "Failed to install"
+ prepalldocs
+}
diff --git a/sys-fs/fuse-zip/fuse-zip-0.2.13.ebuild b/sys-fs/fuse-zip/fuse-zip-0.2.13.ebuild
new file mode 100644
index 000000000000..cebbb26336e0
--- /dev/null
+++ b/sys-fs/fuse-zip/fuse-zip-0.2.13.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="FUSE file system to navigate, extract, create and modify ZIP archives"
+HOMEPAGE="http://code.google.com/p/fuse-zip/"
+SRC_URI="http://fuse-zip.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-libs/libzip
+ sys-fs/fuse"
+RDEPEND="${DEPEND}"
+
+RESTRICT="test"
+
+src_prepare() {
+ # Fix strip than installing fuse-zip
+ sed -i -e 's/install -m 755 -s/install -m 755/' Makefile || die "sed failed"
+ # fix broken makefile
+ epatch "${FILESDIR}"/"${P}"-as-needed.patch
+ # fix building with libzip-0.10
+ epatch "${FILESDIR}"/libzip-fix-0.10.patch
+ #enable parallel build
+ sed -i -e "s:make :\$\(MAKE\) :" Makefile || die "sed failed"
+}
+
+src_compile() {
+ emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS} ${LDFLAGS}" || die
+}
+
+src_install() {
+ emake INSTALLPREFIX="${D}"/usr install || die "Failed to install"
+ prepalldocs
+}
diff --git a/sys-fs/fuse-zip/fuse-zip-0.3.0.ebuild b/sys-fs/fuse-zip/fuse-zip-0.3.0.ebuild
new file mode 100644
index 000000000000..0736b3c8a0e9
--- /dev/null
+++ b/sys-fs/fuse-zip/fuse-zip-0.3.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="FUSE file system to navigate, extract, create and modify ZIP archives"
+HOMEPAGE="http://code.google.com/p/fuse-zip/"
+SRC_URI="http://fuse-zip.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-libs/libzip
+ sys-fs/fuse"
+RDEPEND="${DEPEND}"
+
+RESTRICT="test"
+
+src_prepare() {
+ # Fix strip than installing fuse-zip
+ sed -i -e 's/install -m 755 -s/install -m 755/' Makefile || die "sed failed"
+ # fix broken makefile
+ epatch "${FILESDIR}"/"${PN}"-0.2.13-as-needed.patch
+ #enable parallel build
+ sed -i -e "s:make :\$\(MAKE\) :" Makefile || die "sed failed"
+}
+
+src_compile() {
+ emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS} ${LDFLAGS}"
+}
+
+src_install() {
+ emake INSTALLPREFIX="${D}"/usr install
+}
diff --git a/sys-fs/fuse-zip/fuse-zip-0.4.0.ebuild b/sys-fs/fuse-zip/fuse-zip-0.4.0.ebuild
new file mode 100644
index 000000000000..1fe3feecf280
--- /dev/null
+++ b/sys-fs/fuse-zip/fuse-zip-0.4.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs
+
+DESCRIPTION="FUSE file system to navigate, extract, create and modify ZIP archives"
+HOMEPAGE="http://code.google.com/p/fuse-zip/"
+SRC_URI="http://fuse-zip.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=dev-libs/libzip-0.11.2:=
+ >=sys-fs/fuse-2.7:="
+RDEPEND="${DEPEND}"
+
+RESTRICT="test"
+
+src_prepare() {
+ # Fix strip than installing fuse-zip
+ sed -i -e 's/install -m 755 -s/install -m 755/' Makefile || die "sed failed"
+ #enable parallel build
+ sed -i -e "s:make :\$\(MAKE\) :" Makefile || die "sed failed"
+}
+
+src_compile() {
+ emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS} ${LDFLAGS}"
+}
+
+src_install() {
+ emake INSTALLPREFIX="${D}"/usr install
+}
diff --git a/sys-fs/fuse-zip/metadata.xml b/sys-fs/fuse-zip/metadata.xml
new file mode 100644
index 000000000000..37f5c95810cb
--- /dev/null
+++ b/sys-fs/fuse-zip/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
+ </maintainer>
+ <longdescription lang="en">
+ </longdescription>
+ <upstream>
+ <remote-id type="google-code">fuse-zip</remote-id>
+ </upstream>
+</pkgmetadata>