app-arch/qpress: new package.
authorAzamat H. Hackimov <azamat.hackimov@gmail.com>
Tue, 21 Mar 2017 11:28:25 +0000 (16:28 +0500)
committerPatrice Clement <monsieurp@gentoo.org>
Wed, 22 Mar 2017 11:22:09 +0000 (12:22 +0100)
This package required as runtime dependency for dev-db/percona-xtrabackup.

Package-Manager: Portage-2.3.3, Repoman-2.3.1
Closes: https://github.com/gentoo/gentoo/pull/4270

app-arch/qpress/Manifest [new file with mode: 0644]
app-arch/qpress/files/makefile [new file with mode: 0644]
app-arch/qpress/metadata.xml [new file with mode: 0644]
app-arch/qpress/qpress-1.1.ebuild [new file with mode: 0644]

diff --git a/app-arch/qpress/Manifest b/app-arch/qpress/Manifest
new file mode 100644 (file)
index 0000000..1a77e8d
--- /dev/null
@@ -0,0 +1 @@
+DIST qpress-11-source.zip 26998 SHA256 4bb66b1383bbc4c5490eec6088d37109e11205fb9f94ccd04cb84ec069829633 SHA512 986754cca8bb2cdcfc7e197f7e123c6b2da90db840642a6385f14613f49f7ec6b2c18944838405fe35d5382d71fcd5d69050a036dda4c5de2e588d144e16ea6b WHIRLPOOL b8ee4274da850091dfc2be520870530f9d1208f1791d5649df6856dfa2e7e6a500e1cc9c08cbcb64160f4a40137676af6d1820b862112e878f191da21d7f60fd
diff --git a/app-arch/qpress/files/makefile b/app-arch/qpress/files/makefile
new file mode 100644 (file)
index 0000000..63c1f91
--- /dev/null
@@ -0,0 +1,6 @@
+CXX ?= g++
+CXXFLAGS ?= -O3
+LIBS=-lpthread
+
+qpress:
+       $(CXX) $(CXXFLAGS) qpress.cpp aio.cpp quicklz.c utilities.cpp -o $@ $(LIBS)
diff --git a/app-arch/qpress/metadata.xml b/app-arch/qpress/metadata.xml
new file mode 100644 (file)
index 0000000..f326e21
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="person">
+               <email>azamat.hackimov@gmail.com</email>
+               <name>Azamat H. Hackimov</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>proxy-maint@gentoo.org</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+       <longdescription lang="en">
+               A portable file archiver using QuickLZ algorithm.
+       </longdescription>
+</pkgmetadata>
diff --git a/app-arch/qpress/qpress-1.1.ebuild b/app-arch/qpress/qpress-1.1.ebuild
new file mode 100644 (file)
index 0000000..e7787c7
--- /dev/null
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A portable file archiver using QuickLZ algorithm"
+HOMEPAGE="http://www.quicklz.com/"
+SRC_URI="http://www.quicklz.com/${PN}-${PV/./}-source.zip"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+S="${WORKDIR}"
+
+src_prepare() {
+       default
+
+       # Fix compilation with newer gcc
+       sed -i '1i #include <unistd.h>' qpress.cpp || die
+       cp "${FILESDIR}/makefile" "${S}" || die
+}
+
+src_install() {
+       dobin ${PN}
+}