View | Details | Raw Unified | Return to bug 207981
Collapse All | Expand All

(-)benchmarks/phoronix-test-suite/Makefile (-14 / +18 lines)
Lines 2-27 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	phoronix-test-suite
4
PORTNAME=	phoronix-test-suite
5
PORTVERSION=	5.4.1
5
PORTVERSION=	6.2.2
6
PORTREVISION=	1
7
CATEGORIES=	benchmarks
6
CATEGORIES=	benchmarks
8
MASTER_SITES=	http://www.phoronix-test-suite.com/releases/
7
MASTER_SITES=	http://www.phoronix-test-suite.com/releases/
9
8
10
MAINTAINER=	ports@FreeBSD.org
9
MAINTAINER=	luca.pizzamiglio@gmail.com
11
COMMENT=	Phoronix Benchmarking Suite
10
COMMENT=	Phoronix Benchmarking Suite
12
11
13
LICENSE=	GPLv3
12
LICENSE=	GPLv3
14
LICENSE_FILE=	${WRKSRC}/COPYING
13
LICENSE_FILE=	${WRKSRC}/COPYING
15
14
16
RUN_DEPENDS=	fpdf>0:${PORTSDIR}/print/fpdf
15
USE_GCC=	any
17
18
USE_PHP=	ctype curl dom filter gd hash json openssl pcntl posix session \
16
USE_PHP=	ctype curl dom filter gd hash json openssl pcntl posix session \
19
	sockets sqlite3 zip zlib
17
	simplexml sockets sqlite3 zip zlib
20
USE_PHP_BUILD=	yes
18
USE_PHP_BUILD=	yes
21
WANT_PHP_CLI=	yes
19
WANT_PHP_CLI=	yes
22
NO_BUILD=	yes
20
NO_BUILD=	yes
23
WRKSRC=		${WRKDIR}/phoronix-test-suite
21
WRKSRC=		${WRKDIR}/phoronix-test-suite
24
22
23
RUN_DEPENDS+=	fpdf>0:${PORTSDIR}/print/fpdf
24
RUN_DEPENDS+=	cmake:${PORTSDIR}/devel/cmake
25
25
PORTDATA=	*
26
PORTDATA=	*
26
PORTDOCS=	*
27
PORTDOCS=	*
27
28
Lines 39-56 post-patch: Link Here
39
	@${SED} -i '' -e "s|/usr/local|${LOCALBASE}|g" \
40
	@${SED} -i '' -e "s|/usr/local|${LOCALBASE}|g" \
40
		${WRKSRC}/phoronix-test-suite \
41
		${WRKSRC}/phoronix-test-suite \
41
		${WRKSRC}/pts-core/commands/ob_test_profile_analyze.php \
42
		${WRKSRC}/pts-core/commands/ob_test_profile_analyze.php \
43
		${WRKSRC}/pts-core/pts-core.php \
44
		${WRKSRC}/pts-core/objects/pts_svg_dom_gd.php \
45
		${WRKSRC}/pts-core/objects/phodevi/components/phodevi_system.php \
46
		${WRKSRC}/pts-core/objects/client/pts_external_dependencies.php \
47
		${WRKSRC}/pts-core/objects/client/pts_client.php \
42
		${WRKSRC}/pts-core/external-test-dependencies/scripts/install-dragonfly-packages.sh \
48
		${WRKSRC}/pts-core/external-test-dependencies/scripts/install-dragonfly-packages.sh \
43
		${WRKSRC}/pts-core/external-test-dependencies/xml/dragonfly-packages.xml \
49
		${WRKSRC}/pts-core/external-test-dependencies/xml/freebsd-packages.xml
44
		${WRKSRC}/pts-core/external-test-dependencies/xml/freebsd-packages.xml \
45
		${WRKSRC}/pts-core/objects/bilde_renderer/bilde_renderer.php \
46
		${WRKSRC}/pts-core/objects/client/pts_client.php
47
	@${SED} -i '' -e "s|/usr/share/fonts|${LOCALBASE}/share/fonts| ; \
50
	@${SED} -i '' -e "s|/usr/share/fonts|${LOCALBASE}/share/fonts| ; \
48
		s|/usr/X11/lib|${LOCALBASE}/lib|" \
51
		s|/usr/X11/lib|${LOCALBASE}/lib|" \
49
		${WRKSRC}/pts-core/objects/bilde_renderer/bilde_renderer.php
52
		${WRKSRC}/pts-core/objects/pts_svg_dom_gd.php
50
	@${SED} -i '' -e "/fpdf.php/s|/usr/share/php|${PREFIX}/share|" \
53
	@${SED} -i '' -e "/fpdf.php/s|/usr/share/php|${PREFIX}/share|" \
51
		${WRKSRC}/pts-core/pts-core.php \
54
		${WRKSRC}/pts-core/objects/pts_pdf_template.php
52
		${WRKSRC}/pts-core/commands/dump_documentation.php \
55
		#${WRKSRC}/pts-core/pts-core.php \
53
		${WRKSRC}/pts-core/commands/result_file_to_pdf.php
56
		#${WRKSRC}/pts-core/commands/dump_documentation.php \
57
		#${WRKSRC}/pts-core/commands/result_file_to_pdf.php
54
58
55
do-install:
59
do-install:
56
	(cd ${WRKSRC} && ${CONFIGURE_ARGS} DESTDIR="${STAGEDIR}" ./install-sh ${PREFIX})
60
	(cd ${WRKSRC} && ${CONFIGURE_ARGS} DESTDIR="${STAGEDIR}" ./install-sh ${PREFIX})
(-)benchmarks/phoronix-test-suite/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (phoronix-test-suite-5.4.1.tar.gz) = 51a78780a9219acd2f382c4b76529521b538de291778c0de283d52d4ebc9abd3
1
SHA256 (phoronix-test-suite-6.2.2.tar.gz) = 78493166c8a74cdd129c3a86855e9cc6ae579b6a9f4f67dbf428ad00e3f2856e
2
SIZE (phoronix-test-suite-5.4.1.tar.gz) = 788823
2
SIZE (phoronix-test-suite-6.2.2.tar.gz) = 839022
(-)benchmarks/phoronix-test-suite/files/patch-install-sh (-9 / +9 lines)
Lines 1-5 Link Here
1
--- install-sh.orig	2014-11-28 20:51:03.000000000 +0400
1
--- install-sh.orig	2016-01-01 17:41:58.000000000 +0100
2
+++ install-sh	2015-01-15 01:21:40.000000000 +0400
2
+++ install-sh	2016-03-07 14:22:05.614854871 +0100
3
@@ -47,16 +47,21 @@
3
@@ -47,16 +47,21 @@
4
 fi
4
 fi
5
 
5
 
Lines 25-31 Link Here
25
 #mkdir -p $DESTDIR$INSTALL_PREFIX/../usr/lib/systemd/system/
25
 #mkdir -p $DESTDIR$INSTALL_PREFIX/../usr/lib/systemd/system/
26
 #mkdir -p $DESTDIR$INSTALL_PREFIX/../etc/init/
26
 #mkdir -p $DESTDIR$INSTALL_PREFIX/../etc/init/
27
 
27
 
28
@@ -69,15 +74,19 @@
28
@@ -69,15 +74,18 @@
29
 cd ..
29
 cd ..
30
 rm -rf $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/man-pages/
30
 rm -rf $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/man-pages/
31
 
31
 
Lines 42-55 Link Here
42
 cp pts-core/static/phoronix-test-suite.desktop $DESTDIR$INSTALL_PREFIX/share/applications/
42
 cp pts-core/static/phoronix-test-suite.desktop $DESTDIR$INSTALL_PREFIX/share/applications/
43
 cp pts-core/static/phoronix-test-suite-launcher.desktop $DESTDIR$INSTALL_PREFIX/share/applications/
43
 cp pts-core/static/phoronix-test-suite-launcher.desktop $DESTDIR$INSTALL_PREFIX/share/applications/
44
 cp pts-core/static/phoronix-test-suite.appdata.xml $DESTDIR$INSTALL_PREFIX/share/appdata/
44
 cp pts-core/static/phoronix-test-suite.appdata.xml $DESTDIR$INSTALL_PREFIX/share/appdata/
45
+fi
45
-
46
 
47
-mkdir -p $DESTDIR$INSTALL_PREFIX/../usr/lib/systemd/system/
46
-mkdir -p $DESTDIR$INSTALL_PREFIX/../usr/lib/systemd/system/
48
-cp pts-core/static/*.service $DESTDIR$INSTALL_PREFIX/../usr/lib/systemd/system/
47
-cp deploy/*-systemd/*.service $DESTDIR$INSTALL_PREFIX/../usr/lib/systemd/system/
48
+fi
49
 
49
 
50
 # mkdir -p $DESTDIR$INSTALL_PREFIX/../etc/init/
50
 # mkdir -p $DESTDIR$INSTALL_PREFIX/../etc/init/
51
 # cp pts-core/static/upstart/*.conf $DESTDIR$INSTALL_PREFIX/../etc/init/
51
 # cp pts-core/static/upstart/*.conf $DESTDIR$INSTALL_PREFIX/../etc/init/
52
@@ -92,12 +101,13 @@
52
@@ -92,12 +100,13 @@
53
 rm -f $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/pts-core/static/images/openbenchmarking.png
53
 rm -f $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/pts-core/static/images/openbenchmarking.png
54
 rm -f $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/pts-core/static/images/%phoronix-test-suite.png
54
 rm -f $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/pts-core/static/images/%phoronix-test-suite.png
55
 
55
 
Lines 62-70 Link Here
62
+if [ -z "$WITHOUT_X11" ]
62
+if [ -z "$WITHOUT_X11" ]
63
+then
63
+then
64
 # XDG MIME OpenBenchmarking support
64
 # XDG MIME OpenBenchmarking support
65
 if [ "X$DESTDIR" = "X" ]
65
 if [ "X$DESTDIR" = "X" ] && which xdg-mime >/dev/null && which xdg-icon-resource >/dev/null
66
 then
66
 then
67
@@ -112,15 +122,14 @@
67
@@ -112,15 +121,14 @@
68
 	cp pts-core/static/images/openbenchmarking.png $DESTDIR$INSTALL_PREFIX/share/icons/hicolor/64x64/mimetypes/application-x-openbenchmarking.png
68
 	cp pts-core/static/images/openbenchmarking.png $DESTDIR$INSTALL_PREFIX/share/icons/hicolor/64x64/mimetypes/application-x-openbenchmarking.png
69
 
69
 
70
 fi
70
 fi

Return to bug 207981