summaryrefslogtreecommitdiff
path: root/app-benchmarks/gtkperf
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-benchmarks/gtkperf
reinit the tree, so we can have metadata
Diffstat (limited to 'app-benchmarks/gtkperf')
-rw-r--r--app-benchmarks/gtkperf/Manifest6
-rw-r--r--app-benchmarks/gtkperf/files/gtkperf-0.40-gentoo.patch47
-rw-r--r--app-benchmarks/gtkperf/gtkperf-0.40-r1.ebuild40
-rw-r--r--app-benchmarks/gtkperf/metadata.xml16
4 files changed, 109 insertions, 0 deletions
diff --git a/app-benchmarks/gtkperf/Manifest b/app-benchmarks/gtkperf/Manifest
new file mode 100644
index 000000000000..58beaebeb23e
--- /dev/null
+++ b/app-benchmarks/gtkperf/Manifest
@@ -0,0 +1,6 @@
+AUX gtkperf-0.40-gentoo.patch 1008 SHA256 3e61d74d9b11dcccc5065767717f09882583c83864e5a0cbcbb4accb9f7025d5 SHA512 f0feb9f17471167b352d79dfde1439ef0cdb5d2961a191bb9716a2b75a6c5dd2067a80ab3dcaf5669f335b9b0200803c234b228bc64d3152578ab3f3ab21564d WHIRLPOOL 5cc19b1f137e38828af41f906a52ceb0b70de2fcbd2b25feeb1a2c65853639431c324a88c3afbd890d712b663834946c8d92570d84910634c8999905aeb47c3b
+DIST gtkperf_0.40.tar.gz 402982 SHA256 9704344e732038eecbd007dd996a56293a6b027b5b76f3f036273a3fae1ab27b SHA512 d406955b38c0450c3c6a6a7e9fb1fa7b326932325360353001cab6be63c8deaaea487123512740b57cdc28579ee84aabce789df5ce7dfaa92f8d9010f0a6d7be WHIRLPOOL efecc92235b827301bea813478338ff80514e332ba5df889090d4b93dc022618695bba23e13621dddaecf04ff0140d17c9396a75e489667f3339c5f63960318f
+EBUILD gtkperf-0.40-r1.ebuild 724 SHA256 eac4fbbb32220995061004b02b63b1c1ea8a5ec4d4c35c33caf26d41888e6395 SHA512 3bd350a934e5d2b21af8eb0b404f5eade82dcbff5994605fcfdd01b25c2e9950897cadf713f87152096b658e25bf13a85f9cbbd5e7cf9fc29005c3d0e6c47c2c WHIRLPOOL e81f94dab138689a76a3503c2a2cc27a7b0ff6b89a09b0bd33dd7b05e44db130cd8d26c34dd7db699cdf21bc66440759a77eb7116736c2deb2d2fd1e77670558
+MISC ChangeLog 2220 SHA256 3cacef41b0e16750e46deafb04ddbd19679a023d692c952ae5e523cb04963ca0 SHA512 1a2bb58250b1291657bd414b3e273ca9bc86d9b0e40a564513b86c7a93f7147fe957862e6959100c684663cf4c98e8812ee8a1b5751cb14b5b7ea3825ddfb585 WHIRLPOOL ef4b2275f704261b9f9b39e2b07bb717f207c5b80a1f39b278adf336a05521dcda7467424bcfa2ac7e8004943035191c06aecff9fdd64eec11d7ee3b23f99c8a
+MISC ChangeLog-2015 1231 SHA256 7de4a32a7caa3d4c49a4992c74f901fa445c23f507e8e7d5395eb172464b7922 SHA512 31548704abfb8589603f9e17990a2f51ba80f202d97a54c845942ef82b4d96c1b6f0bb43bf2a75c1e00c8942969e75ebacb3d3a68a6fda3cc6f2809a6a5fa904 WHIRLPOOL 3ba4baf1a00934813a1884679009f2c9411c6f705bb232cec7945901f231a4ecb9bbc446defd067f74166fbb20774e1a485ca475e5a0cf60f915884c90a7f302
+MISC metadata.xml 592 SHA256 e63f2b1783dbf2935553124dcda17cf1c89478d501600ba6efe8151c2db7ed88 SHA512 1b8e9e427468d498f3e064184f48886b43370328d5640cc14d38603a03bb90ab8467e95783d8d5ea12ab211f3643c369400d0571f5e181cdd9131a19f48a524a WHIRLPOOL 8d55c40286cf5e1fbc93a4b6019411d5c61950b968532966fe556dc960670df1d0857f3eb42ae4da263cee80779017f8eb26c9f6d33abf49f901dead595eacc4
diff --git a/app-benchmarks/gtkperf/files/gtkperf-0.40-gentoo.patch b/app-benchmarks/gtkperf/files/gtkperf-0.40-gentoo.patch
new file mode 100644
index 000000000000..eee7faf43b61
--- /dev/null
+++ b/app-benchmarks/gtkperf/files/gtkperf-0.40-gentoo.patch
@@ -0,0 +1,47 @@
+--- gtkperf-0.40/work/gtkperf/configure.in
++++ gtkperf-0.40/work/gtkperf/configure.in
+@@ -8,7 +8,6 @@
+ AM_CONFIG_HEADER(config.h)
+
+ AC_ISC_POSIX
+-CFLAGS=""
+ AC_SUBST(CFLAGS)
+ AC_PROG_CC
+ AM_PROG_CC_STDC
+--- gtkperf-0.40/work/gtkperf/src/timing.c
++++ gtkperf-0.40/work/gtkperf/src/timing.c
+@@ -97,7 +97,7 @@
+ gtk_text_buffer_insert (appdata->textview_info_buffer, &iter,
+ timestring, -1);
+
+- g_printf (timestring);
++ g_printf ("%s", timestring);
+
+ }
+
+@@ -129,7 +129,7 @@
+ gtk_statusbar_push (GTK_STATUSBAR (appdata->statusbar_main), 0,
+ " Test Finished");
+
+- g_printf (timestring);
++ g_printf ("%s", timestring);
+
+ }
+
+@@ -154,5 +154,5 @@
+ gtk_statusbar_push (GTK_STATUSBAR (appdata->statusbar_main), 0,
+ " Running tests...");
+
+- g_printf (timestring);
++ g_printf ("%s", timestring);
+ }
+--- gtkperf-0.40/work/gtkperf/src/main.c
++++ gtkperf-0.40/work/gtkperf/src/main.c
+@@ -5,6 +5,7 @@
+ #endif
+
+ #include <gtk/gtk.h>
++#include <stdlib.h>
+
+ #ifdef HILDONIZED
+ #include <libosso.h>
diff --git a/app-benchmarks/gtkperf/gtkperf-0.40-r1.ebuild b/app-benchmarks/gtkperf/gtkperf-0.40-r1.ebuild
new file mode 100644
index 000000000000..bc948128ccae
--- /dev/null
+++ b/app-benchmarks/gtkperf/gtkperf-0.40-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+MY_P="${PN}_${PV}"
+DESCRIPTION="Application designed to test GTK+ performance"
+HOMEPAGE="http://gtkperf.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="nls"
+
+RDEPEND="x11-libs/gtk+:2"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}
+
+src_install() {
+ default
+
+ make_desktop_entry ${PN} ${PN} duck
+
+ rm -rf "${D}/usr/doc" || die
+ dodoc AUTHORS ChangeLog README TODO
+}
diff --git a/app-benchmarks/gtkperf/metadata.xml b/app-benchmarks/gtkperf/metadata.xml
new file mode 100644
index 000000000000..101920d3572d
--- /dev/null
+++ b/app-benchmarks/gtkperf/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>xmw@gentoo.org</email>
+ </maintainer>
+ <longdescription lang="en">
+ GtkPerf is an application designed to test GTK+ performance. The point
+ is to create common testing platform to run predefined GTK+ widgets
+ (opening comboboxes, toggling buttons, scrolling text yms.) and this
+ way define the speed of device/platform.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">gtkperf</remote-id>
+ </upstream>
+</pkgmetadata>