1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Update to 3.0.1

Take maintainership
This commit is contained in:
Martin Matuska 2011-03-15 22:21:08 +00:00
parent b6557b7e1d
commit c8db9a5ab3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=270976
4 changed files with 439 additions and 775 deletions

View File

@ -6,18 +6,17 @@
#
PORTNAME= phoronix-test-suite
PORTVERSION= 1.8.1
PORTREVISION= 1
PORTVERSION= 3.0.1
CATEGORIES= benchmarks
MASTER_SITES= http://www.phoronix-test-suite.com/releases/ \
http://www.phoronix.com/downloads/phoronix-test-suite/releases/
MASTER_SITES= http://www.phoronix-test-suite.com/releases/
MAINTAINER= ports@FreeBSD.org
MAINTAINER= mm@FreeBSD.org
COMMENT= Phoronix Benchmarking Suite
OPTIONS= X11 "Enable support for php-gtk2 GUI" on
OPTIONS= BASH_COMPLETIONS "Install bash completions" off \
X11 "Install X11 icons and mimetypes" on
USE_PHP= yes
USE_PHP= zip json openssl gd zlib pcntl posix curl
USE_PHP_BUILD= yes
WANT_PHP_CLI= yes
USE_GZIP= yes
@ -25,41 +24,59 @@ NO_BUILD= yes
WRKSRC= ${WRKDIR}/phoronix-test-suite
MAN1= phoronix-test-suite.1
DOCFILES1= CHANGE-LOG COPYING AUTHORS
DOCFILES2= includes/pts-documentation.png includes/pts-documentation.css \
tips_and_tricks.html specifications_xml_test.html specifications_xml_suite.html \
specifications_xml_download.html sensor_monitoring.html pts_options.html \
install.html index.html default_files.html writing_your_first_test.html \
credits.html writing_your_first_module.html
PORTDOCS= *
.include <bsd.port.pre.mk>
DOCFILES1= CHANGE-LOG COPYING AUTHORS
DOCFILES2= phoronix-test-suite.pdf specifications_xml_test.html \
specifications_xml_download.html writing_your_first_module.html \
specifications_xml_suite.html writing_your_first_test.html
.include <bsd.port.options.mk>
.if !defined(WITHOUT_X11)
RUN_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/php_gtk2.so:${PORTSDIR}/x11-toolkits/php-gtk2
X11_DEPENDS= ${LOCALBASE}/bin/xdg-mime:${PORTSDIR}/devel/xdg-utils \
${LOCALBASE}/share/icons/hicolor/index.theme:${PORTSDIR}/misc/hicolor-icon-theme \
${LOCALBASE}/bin/update-mime-database:${PORTSDIR}/misc/shared-mime-info
BUILD_DEPENDS+= ${X11_DEPENDS}
RUN_DEPENDS+= ${X11_DEPENDS}
PLIST_SUB+= X11=""
.else
INSTALL_OPTS= WITHOUT_X11=yes
PLIST_SUB+= X11="@comment "
.endif
.if defined(WITH_BASH_COMPLETIONS)
INSTALL_OPTS+= WITH_BASH_COMPLETIONS=yes
PLIST_SUB+= BASH_COMPLETIONS=""
.else
PLIST_SUB+= BASH_COMPLETIONS="@comment "
.endif
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e "s|/share/man/man1|/man/man1|g" ${WRKSRC}/install-sh
@${REINPLACE_CMD} -e "s|/usr/local|${LOCALBASE}|g" \
${WRKSRC}/phoronix-test-suite \
${WRKSRC}/pts/test-resources/yafray/install.sh \
${WRKSRC}/pts/test-resources/etqw/install.sh \
${WRKSRC}/pts/test-resources/mafft/install.sh \
${WRKSRC}/pts/distro-xml/freebsd-packages.xml \
${WRKSRC}/pts-core/library/pts-functions_shell.php
${WRKSRC}/pts-core/objects/bilde_renderer/bilde_renderer.php \
${WRKSRC}/pts-core/objects/pts_client.php \
${WRKSRC}/pts-core/external-test-dependencies/xml/freebsd-packages.xml
do-install:
cd ${WRKSRC} && ./install-sh ${LOCALBASE}
cd ${WRKSRC} && ${INSTALL_OPTS} ./install-sh ${PREFIX}
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${MKDIR} ${DOCSDIR}/includes
.for FILE in ${DOCFILES1}
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}/${FILE}
.endfor
.for FILE in ${DOCFILES2}
.for FILE in ${DOCFILES2}
@${INSTALL_DATA} ${WRKSRC}/documentation/${FILE} ${DOCSDIR}/${FILE}
.endfor
.for DIR in html_sections includes
@${CP} -rf ${WRKSRC}/documentation/${DIR} ${DOCSDIR}
.endfor
@${ECHO_MSG} "===> Docs installed in ${DOCSDIR}."
.endif

View File

@ -1,2 +1,2 @@
SHA256 (phoronix-test-suite-1.8.1.tar.gz) = d5e64ad81bba55f1dad0a5c760b25e50b35a86de270e6068596d02253b58d865
SIZE (phoronix-test-suite-1.8.1.tar.gz) = 418723
SHA256 (phoronix-test-suite-3.0.1.tar.gz) = 113804343d951e9e4380dd15efaa3e5caa2eaf5ff32f83729ee1572e2e4fc971
SIZE (phoronix-test-suite-3.0.1.tar.gz) = 429462

View File

@ -1,31 +1,65 @@
--- install-sh.orig 2009-03-07 23:21:13.000000000 -0500
+++ install-sh 2009-07-06 13:45:10.000000000 -0400
@@ -51,30 +51,24 @@
mkdir -p $DESTDIR$INSTALL_PREFIX/share/icons/
--- install-sh.orig 2011-02-15 19:34:54.000000000 +0100
+++ install-sh 2011-03-15 23:12:11.058903759 +0100
@@ -45,33 +45,34 @@
fi
rm -rf $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/
-rm -rf $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/
mkdir -p $DESTDIR$INSTALL_PREFIX/bin/
+if [ -z "$WITHOUT_X11" ]
+then
mkdir -p $DESTDIR$INSTALL_PREFIX/share/applications/
mkdir -p $DESTDIR$INSTALL_PREFIX/share/icons/hicolor/48x48/apps/
+fi
mkdir -p $DESTDIR$INSTALL_PREFIX/share/man/man1/
mkdir -p $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/
-mkdir -p $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/
-mkdir -p $DESTDIR$INSTALL_PREFIX/../etc/bash_completion.d/
-
-cp CHANGE-LOG $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/
-cp COPYING $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/
-cp AUTHORS $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/
cd documentation/
-
-cd documentation/
-cp -r * $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/
cd ..
rm -rf $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/man-pages/
-cd ..
-rm -rf $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/man-pages/
+if [ -n "$WITH_BASH_COMPLETIONS" ]
+then
+mkdir -p $DESTDIR$INSTALL_PREFIX/etc/bash_completion.d/
+fi
cp documentation/man-pages/*.1 $DESTDIR$INSTALL_PREFIX/share/man/man1/
cp pts-core/media/phoronix-test-suite.png $DESTDIR$INSTALL_PREFIX/share/icons/phoronix-test-suite.png
-cp pts-core/static/bash_completion $DESTDIR$INSTALL_PREFIX/../etc/bash_completion.d/phoronix-test-suite
+if [ -n "$WITH_BASH_COMPLETION" ]
+then
+cp pts-core/static/bash_completion $DESTDIR$INSTALL_PREFIX/etc/bash_completion.d/phoronix-test-suite
+fi
+if [ -z "$WITHOUT_X11" ]
+then
cp pts-core/static/images/phoronix-test-suite.png $DESTDIR$INSTALL_PREFIX/share/icons/hicolor/48x48/apps/phoronix-test-suite.png
cp pts-core/static/images/openbenchmarking.png $DESTDIR$INSTALL_PREFIX/share/icons/hicolor/64x64/apps/openbenchmarking.png
cp pts-core/static/phoronix-test-suite.desktop $DESTDIR$INSTALL_PREFIX/share/applications/
+fi
-cp -r pts/ $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/
+cp -r pts $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/
rm -f $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/pts/etc/scripts/package-build-*
-cp -r pts-core/ $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/
+cp -r pts-core $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/
rm -f $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/pts-core/static/phoronix-test-suite.desktop
sed 's:PTS_DIR=`pwd`:PTS_DIR='"$INSTALL_PREFIX"'\/share\/phoronix-test-suite:g' phoronix-test-suite > $DESTDIR$INSTALL_PREFIX/bin/phoronix-test-suite
chmod +x $DESTDIR$INSTALL_PREFIX/bin/phoronix-test-suite
@@ -79,14 +80,16 @@
# sed 's:\$url = PTS_PATH . \"documentation\/index.html\";:\$url = \"'"$INSTALL_PREFIX"'\/share\/doc\/packages\/phoronix-test-suite\/index.html\";:g' pts-core/commands/gui_gtk.php > $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/pts-core/commands/gui_gtk.php
+if [ -z "$WITHOUT_X11" ]
+then
# XDG MIME OpenBenchmarking support
xdg-mime install pts-core/openbenchmarking.org/openbenchmarking-mime.xml
xdg-mime default phoronix-test-suite.desktop application/x-openbenchmarking
xdg-icon-resource install --context mimetypes --size 64 pts-core/static/images/openbenchmarking.png application-x-openbenchmarking
+fi
echo -e "\nPhoronix Test Suite Installation Completed\n
Executable File: $INSTALL_PREFIX/bin/phoronix-test-suite

File diff suppressed because it is too large Load Diff