diff options
author | miwi <miwi@FreeBSD.org> | 2013-05-20 16:52:23 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2013-05-20 16:52:23 +0800 |
commit | 432a8ba3ab379f1bed44c4e593c221140ad0e0a5 (patch) | |
tree | 1c9d7e3488de96da640c29254746154f6213ef9e /graphics | |
parent | 83d8206376f52e3487f75b69985bcec73ede7d9d (diff) | |
download | freebsd-ports-gnome-432a8ba3ab379f1bed44c4e593c221140ad0e0a5.tar.gz freebsd-ports-gnome-432a8ba3ab379f1bed44c4e593c221140ad0e0a5.tar.zst freebsd-ports-gnome-432a8ba3ab379f1bed44c4e593c221140ad0e0a5.zip |
- Update MASTER_SITES
- Support PORTEXAMPLES
PR: 178575
Submitted by: Ports Fury
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/py-gd/Makefile | 39 | ||||
-rw-r--r-- | graphics/py-gd/distinfo | 4 | ||||
-rw-r--r-- | graphics/py-gd/pkg-plist | 2 |
3 files changed, 15 insertions, 30 deletions
diff --git a/graphics/py-gd/Makefile b/graphics/py-gd/Makefile index a2fc58d5cb4f..7b91029eea22 100644 --- a/graphics/py-gd/Makefile +++ b/graphics/py-gd/Makefile @@ -1,47 +1,34 @@ -# New ports collection makefile for: py-gd -# Date created: 23 December 2001 -# Whom: Hye-Shik Chang <perky@fallin.lv> -# +# Created by: Hye-Shik Chang <perky@fallin.lv> # $FreeBSD$ PORTNAME= gd PORTVERSION= 0.56 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= graphics python -MASTER_SITES= http://newcenturycomputers.net/projects/download.cgi/ +MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= gdmodule-${PORTVERSION} +DIST_SUBDIR= repacked MAINTAINER= ports@FreeBSD.org COMMENT= Python interface to the GD library -LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd +LIB_DEPENDS= gd:${PORTSDIR}/graphics/gd -.if !defined(WITHOUT_X11) -USE_XORG= xpm -.endif USE_PYTHON= yes USE_PYDISTUTILS= yes USE_PYTHON_PREFIX= yes PYDISTUTILS_PKGNAME= gdmodule -DISABLE_SIZE= yes -PYSETUP= Setup.py -EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME} post-patch: - ${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' \ - -e 's,/usr/X11R6,${LOCALBASE},g' \ - -e 's,/usr/include/X11,${LOCALBASE}/include,g' \ + @${REINPLACE_CMD} -e \ + '/\/usr\/lib/d ; \ + /\/usr\/include/d ; \ + /\/usr\/X11R6/d ; \ + s|/opt/gnome|${LOCALBASE}| ; \ + /"jpeg", "png", "gif", "z",/d ; \ + /"X11", "Xpm",/d ; \ + /"ttf", "freetype",/d' \ ${WRKSRC}/${PYSETUP} -.if defined(WITHOUT_X11) - ${REINPLACE_CMD} -e 's/"X11", "Xpm",//' \ - -e 's/"ttf", "freetype",//' ${WRKSRC}/${PYSETUP} -.endif - -post-install: -.if !defined(NOPORTDOCS) - ${MKDIR} ${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/gddemo.py ${EXAMPLESDIR} -.endif .include <bsd.port.mk> diff --git a/graphics/py-gd/distinfo b/graphics/py-gd/distinfo index 2453450301a4..6fd61e5a2850 100644 --- a/graphics/py-gd/distinfo +++ b/graphics/py-gd/distinfo @@ -1,2 +1,2 @@ -SHA256 (gdmodule-0.56.tar.gz) = a3a2fd6378e32f10a348c4db428a91e2c1adc28de6ec35c0619a52e379f4edec -SIZE (gdmodule-0.56.tar.gz) = 48748 +SHA256 (repacked/gdmodule-0.56.tar.gz) = 0ff4fe3cbb78c51102b6cf456d5c7b88c2452bb8a6cbd7ed50929b2a8774c7b9 +SIZE (repacked/gdmodule-0.56.tar.gz) = 15042 diff --git a/graphics/py-gd/pkg-plist b/graphics/py-gd/pkg-plist index 5775dc4da91a..cfa5f9c073c8 100644 --- a/graphics/py-gd/pkg-plist +++ b/graphics/py-gd/pkg-plist @@ -2,5 +2,3 @@ %%PYTHON_SITELIBDIR%%/gd.py %%PYTHON_SITELIBDIR%%/gd.pyc %%PYTHON_SITELIBDIR%%/gd.pyo -%%PORTDOCS%%%%EXAMPLESDIR%%/gddemo.py -%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% |