Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 May 2013 02:55:08 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/178575: graphics/py-gd: Update MASTER_SITES
Message-ID:  <20130514025508.4fdd37459162dac6d1f181ab@yahoo.com>
Resent-Message-ID: <201305131810.r4DIA2aZ090911@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         178575
>Category:       ports
>Synopsis:       graphics/py-gd: Update MASTER_SITES
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 13 18:10:02 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p11 i386
>Organization:
>Environment:
>Description:
- Update MASTER_SITES
- Support PORTEXAMPLES

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/graphics/py-gd/Makefile graphics/py-gd/Makefile
--- /usr/ports/graphics/py-gd/Makefile	2012-11-08 09:38:44.000000000 +0900
+++ graphics/py-gd/Makefile	2013-05-14 00:00:49.000000000 +0900
@@ -1,47 +1,46 @@
-# 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: head/graphics/py-gd/Makefile 300896 2012-07-14 13:54:48Z beat $
 
 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}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Python interface to the GD library
 
-LIB_DEPENDS=	gd.4:${PORTSDIR}/graphics/gd
+LIB_DEPENDS=	gd:${PORTSDIR}/graphics/gd
+
+OPTIONS_DEFINE=	EXAMPLES
 
-.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}
+
+EXAMPLESDIR=	${PREFIX}/share/examples/py-${PORTNAME}
+
+.include <bsd.port.options.mk>
 
 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}
+.if ${PORT_OPTIONS:MEXAMPLES}
+	@${MKDIR} ${EXAMPLESDIR}
+	(cd ${WRKSRC} && ${INSTALL_DATA} gddemo.py ${EXAMPLESDIR})
 .endif
 
 .include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130514025508.4fdd37459162dac6d1f181ab>