summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Mozes <hydrapolic@gmail.com>2018-01-17 13:47:17 +0100
committerMichał Górny <mgorny@gentoo.org>2018-01-27 14:34:18 +0100
commit0d85b386091a04eb6888c0d1a442f2610b1d7664 (patch)
tree1cc443d7a1c31f2da826ec2cadb11e7de4bd511c /app-benchmarks
parentdev-lang/rust: bump to 1.23.0-r1, fixing bugs found in 1.23.0 (diff)
downloadgentoo-0d85b386091a04eb6888c0d1a442f2610b1d7664.tar.gz
gentoo-0d85b386091a04eb6888c0d1a442f2610b1d7664.tar.bz2
gentoo-0d85b386091a04eb6888c0d1a442f2610b1d7664.zip
app-benchmarks/sysbench: bump to 1.0.12
Closes: https://github.com/gentoo/gentoo/pull/6598 Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'app-benchmarks')
-rw-r--r--app-benchmarks/sysbench/Manifest1
-rw-r--r--app-benchmarks/sysbench/files/sysbench-1.0.12-htmldir-fix.patch21
-rw-r--r--app-benchmarks/sysbench/sysbench-1.0.12.ebuild64
3 files changed, 86 insertions, 0 deletions
diff --git a/app-benchmarks/sysbench/Manifest b/app-benchmarks/sysbench/Manifest
index ae24a4f028dc..57cb4c6c3e0d 100644
--- a/app-benchmarks/sysbench/Manifest
+++ b/app-benchmarks/sysbench/Manifest
@@ -1,2 +1,3 @@
DIST sysbench-1.0.10.tar.gz 1496937 BLAKE2B d2cf3283a2e2cac89a54e51e975eecec4b5514c08b14fe81138dc36b077e82de54cb3c5d218e1cc00dc6bff66319d780c69249c49c93e810d3ebde3c0b36b656 SHA512 3e2c9597538c9b71a50a0fb0e198f8852206fc609b0968253ee6b12f652fd56f1b2c6e7a4c93161b725e5c56193f7ce9d5cf58c4882839a4c1055c539861d16d
+DIST sysbench-1.0.12.tar.gz 1506013 BLAKE2B 940e2978b81362d66cf0de31b9a0a5a844fd31e19cad47a7538f8f2e2f0a46b08c0d5b80a334da277f0558aaf8316b2a2b91753f30163362c6b6bc25e556e88b SHA512 e4f9d909ac3df31b128fc1ddc4b55cb62c579205439c806d2bfe2579641a9d5e94f159d99cfc8e84680aca1c6af0769f838792dc4b37c57b1e03943ea8211bec
DIST sysbench-1.0.7.tar.gz 1494571 BLAKE2B 56b351cbc1af687b48cce0a98e07301c0d8d35104199adb1e05076091e06e363fd465caec14eb3b1572297f97d35e8fc5eb23eab5ecb70bb4bdb2b2886bc77e2 SHA512 0b32ad27180ab02df9c2e5e85a8b9bec231338cfb20d7337dd80f1e0628b48bae480fde9d69cd21730aa0ab7c65fecbede9c10cd4b96d0dcf44cd012afa10d65
diff --git a/app-benchmarks/sysbench/files/sysbench-1.0.12-htmldir-fix.patch b/app-benchmarks/sysbench/files/sysbench-1.0.12-htmldir-fix.patch
new file mode 100644
index 000000000000..00022f271577
--- /dev/null
+++ b/app-benchmarks/sysbench/files/sysbench-1.0.12-htmldir-fix.patch
@@ -0,0 +1,21 @@
+From c4ddab7660e2a26a6fdb333db8f4b5bb7aad66ca Mon Sep 17 00:00:00 2001
+From: Tomas Mozes <tmozes@sygic.com>
+Date: Wed, 17 Jan 2018 13:29:34 +0100
+Subject: [PATCH] Drop htmldir as it defaults to docdir if unset.
+
+---
+ doc/Makefile.am | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/doc/Makefile.am b/doc/Makefile.am
+index 100a4012..fe441467 100644
+--- a/doc/Makefile.am
++++ b/doc/Makefile.am
+@@ -4,7 +4,6 @@ XHTML_STYLESHEET=$(srcdir)/xsl/xhtml.xsl
+ CHUNK_XHTML_STYLESHEET=$(srcdir)/xsl/xhtml-chunk.xsl
+ XML_CATALOG_FILES=$(srcdir)/xsl/catalog.xml
+
+-htmldir = $(prefix)/share/doc/sysbench
+ dist_html_DATA = manual.html
+
+ EXTRA_DIST=manual.xml
diff --git a/app-benchmarks/sysbench/sysbench-1.0.12.ebuild b/app-benchmarks/sysbench/sysbench-1.0.12.ebuild
new file mode 100644
index 000000000000..e3972cf8d005
--- /dev/null
+++ b/app-benchmarks/sysbench/sysbench-1.0.12.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools pax-utils
+
+DESCRIPTION="System performance benchmark"
+HOMEPAGE="https://github.com/akopytov/sysbench"
+SRC_URI="https://github.com/akopytov/sysbench/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="aio mysql postgres test"
+
+RDEPEND="aio? ( dev-libs/libaio )
+ mysql? ( virtual/libmysqlclient )
+ postgres? ( dev-db/postgresql:= )"
+DEPEND="${RDEPEND}
+ dev-lang/luajit:=
+ dev-libs/concurrencykit
+ dev-libs/libxslt
+ sys-devel/libtool:=
+ virtual/pkgconfig
+ test? ( dev-util/cram )"
+
+PATCHES=(
+ "${FILESDIR}/${P}-htmldir-fix.patch"
+)
+
+src_prepare() {
+ default
+
+ # remove bundled libs
+ rm -r third_party/luajit/luajit third_party/concurrency_kit/ck third_party/cram || die
+
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable aio)
+ $(use_with mysql)
+ $(use_with postgres pgsql)
+ --without-attachsql
+ --without-drizzle
+ --without-oracle
+ --with-system-luajit
+ --with-system-ck
+ )
+
+ econf "${myeconfargs[@]}"
+}
+
+src_test() {
+ emake check test
+}
+
+src_install() {
+ default
+
+ pax-mark m "${ED%/}"/usr/bin/${PN}
+}