- Update MASTER_SITES
- Support PORTEXAMPLES PR: 178575 Submitted by: Ports Fury
This commit is contained in:
parent
9d487233d8
commit
4773e3dbb3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=318584
3 changed files with 15 additions and 30 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -2,5 +2,3 @@
|
|||
%%PYTHON_SITELIBDIR%%/gd.py
|
||||
%%PYTHON_SITELIBDIR%%/gd.pyc
|
||||
%%PYTHON_SITELIBDIR%%/gd.pyo
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/gddemo.py
|
||||
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
|
||||
|
|
Loading…
Reference in a new issue