aboutsummaryrefslogtreecommitdiff
path: root/graphics/jpgraph2
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2016-08-15 18:07:23 +0000
committerPawel Pekala <pawel@FreeBSD.org>2016-08-15 18:07:23 +0000
commitb9455dd2800802223ebff9ef32eacbce26e7adf8 (patch)
tree96927edfcad933ddb67617e6fef2ce2f5e332ae8 /graphics/jpgraph2
parent81b2786a944188fcc1429524a27995aa8f8136db (diff)
downloadports-b9455dd2800802223ebff9ef32eacbce26e7adf8.tar.gz
ports-b9455dd2800802223ebff9ef32eacbce26e7adf8.zip
Notes
Diffstat (limited to 'graphics/jpgraph2')
-rw-r--r--graphics/jpgraph2/Makefile40
-rw-r--r--graphics/jpgraph2/distinfo5
-rw-r--r--graphics/jpgraph2/files/patch-src_jpgraph.php30
-rw-r--r--graphics/jpgraph2/pkg-descr2
4 files changed, 28 insertions, 49 deletions
diff --git a/graphics/jpgraph2/Makefile b/graphics/jpgraph2/Makefile
index 7e7620bb34bb..e5bebb7e1a3e 100644
--- a/graphics/jpgraph2/Makefile
+++ b/graphics/jpgraph2/Makefile
@@ -2,27 +2,26 @@
# $FreeBSD$
PORTNAME= jpgraph
-PORTVERSION= 3.0.7
-PORTREVISION= 1
+PORTVERSION= 4.0.1
CATEGORIES= graphics
-MASTER_SITES= http://hem.bredband.net/jpgraph2/
-PKGNAMESUFFIX= 2
+MASTER_SITES= http://fossies.org/linux/www/
MAINTAINER= ports@FreeBSD.org
COMMENT= Draw both "quick and dirty" graphs with a minimum of code
-LICENSE= jpgraph
-LICENSE_NAME= JpGraph license
-LICENSE_FILE= ${WRKSRC}/README
-LICENSE_PERMS= dist-mirror pkg-mirror auto-accept
+LICENSE= QPL
+LICENSE_NAME= Q PUBLIC LICENSE version 1.0
+LICENSE_TEXT= Please refer to: http://www.opensource.org/licenses/qtpl.php for details
+LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+
+RUN_DEPENDS= ${LOCALBASE}/share/fonts/dejavu/DejaVuSans.ttf:x11-fonts/dejavu
BROKEN_powerpc64= Does not build
-USES= tar:bzip2
+USES= php tar:bzip2
+USE_PHP= gd
NO_ARCH= yes
NO_BUILD= yes
-NO_WRKSUBDIR= yes
-USE_PHP= gd
NO_CDROM= The free version cannot be used in a commercial context
@@ -32,14 +31,23 @@ PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES
+post-patch:
+ @${REINPLACE_CMD} '/TrueType/ s|// ||; \
+ s|/usr/share/fonts/TrueType|${LOCALBASE}/share/fonts/dejavu|' \
+ ${WRKSRC}/src/jpg-config.inc.php
+
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
- ${CP} ${WRKSRC}/src/*.php ${STAGEDIR}${DATADIR}
- ${CP} ${WRKSRC}/src/*.dat ${STAGEDIR}${DATADIR}
- ${CP} -R ${WRKSRC}/src/lang ${STAGEDIR}${DATADIR}
+ (cd ${WRKSRC}/src && ${COPYTREE_SHARE} "*.php *.dat lang themes" \
+ ${STAGEDIR}${DATADIR})
+
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${CP} -R ${WRKSRC}/docportal/* ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
+
+do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
- ${CP} ${WRKSRC}/src/Examples/* ${STAGEDIR}${EXAMPLESDIR}
+ ${RM} ${WRKSRC}/src/Examples/jpgraph
+ (cd ${WRKSRC}/src/Examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>
diff --git a/graphics/jpgraph2/distinfo b/graphics/jpgraph2/distinfo
index 558a1467f2bf..99db80907f7e 100644
--- a/graphics/jpgraph2/distinfo
+++ b/graphics/jpgraph2/distinfo
@@ -1,2 +1,3 @@
-SHA256 (jpgraph-3.0.7.tar.bz2) = 412a1aaf47c7d70c5a4350d1c571ebb88c77138d9b95afd51895c44f188a03b6
-SIZE (jpgraph-3.0.7.tar.bz2) = 10541173
+TIMESTAMP = 1470907503
+SHA256 (jpgraph-4.0.1.tar.bz2) = 256ce5c5f9c111841fcafc2fd53d5042176c91f03724bc76cbca29f23ece3771
+SIZE (jpgraph-4.0.1.tar.bz2) = 12710087
diff --git a/graphics/jpgraph2/files/patch-src_jpgraph.php b/graphics/jpgraph2/files/patch-src_jpgraph.php
deleted file mode 100644
index 07b9b8c38b7c..000000000000
--- a/graphics/jpgraph2/files/patch-src_jpgraph.php
+++ /dev/null
@@ -1,30 +0,0 @@
---- src/jpgraph.php.orig 2016-02-07 15:28:23 UTC
-+++ src/jpgraph.php
-@@ -1286,11 +1286,11 @@ class Graph {
- while( list($key,$value) = each($_GET) ) {
- if( is_array($value) ) {
- foreach ( $value as $k => $v ) {
-- $urlarg .= '&amp;'.$key.'%5B'.$k.'%5D='.urlencode($v);
-+ $urlarg .= '&amp;'.urlencode($key).'%5B'.urlencode($k).'%5D='.urlencode($v);
- }
- }
- else {
-- $urlarg .= '&amp;'.$key.'='.urlencode($value);
-+ $urlarg .= '&amp;'.urlencode($key).'='.urlencode($value);
- }
- }
-
-@@ -1301,11 +1301,11 @@ class Graph {
- while( list($key,$value) = each($_POST) ) {
- if( is_array($value) ) {
- foreach ( $value as $k => $v ) {
-- $urlarg .= '&amp;'.$key.'%5B'.$k.'%5D='.urlencode($v);
-+ $urlarg .= '&amp;'.urlencode($key).'%5B'.urlencode($k).'%5D='.urlencode($v);
- }
- }
- else {
-- $urlarg .= '&amp;'.$key.'='.urlencode($value);
-+ $urlarg .= '&amp;'.urlencode($key).'='.urlencode($value);
- }
- }
-
diff --git a/graphics/jpgraph2/pkg-descr b/graphics/jpgraph2/pkg-descr
index 345ac52642d5..85cc7da2370d 100644
--- a/graphics/jpgraph2/pkg-descr
+++ b/graphics/jpgraph2/pkg-descr
@@ -4,4 +4,4 @@ professional looking graphs which requires a very fine grain of control.
The library assigns context sensitive default values for most parameters
which helps minimize the learning curve.
-WWW: http://www.aditus.nu/jpgraph/
+WWW: http://jpgraph.net/