Skip site navigation (1)Skip section navigation (2)
Date:      16 Sep 2002 21:03:35 -0000
From:      Sergei Kolobov <sergei@kolobov.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/42854: Update port: devel/tpg to 2.1.3, unbreak, take maintainership
Message-ID:  <20020916210335.39883.qmail@outpost.globcon.net>

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

>Number:         42854
>Category:       ports
>Synopsis:       Update port: devel/tpg to 2.1.3, unbreak, take maintainership
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 16 14:10:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Sergei Kolobov
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
>Environment:
System: FreeBSD outpost.globcon.net 4.6-STABLE FreeBSD 4.6-STABLE #0: Thu Aug 1 02:44:26 MSD 2002 sgk@outpost.globcon.net:/data/FreeBSD/obj/data/FreeBSD/src/sys/OUTPOST i386
>Description:
devel/tpg is currently broken due to fetch errors (noticed by bento)
- Unbreak by upgrading to 2.1.3
- Use port's own install process by enabling USE_PYDISTUTILS
- Install PDF and HTML documenataion, respect NOPORTDOCS
- Examples are not docs, so install them even if NOPORTDOCS is defined
- Take maintainership

>How-To-Repeat:
>Fix:

--- tpg-2.1.3.patch begins here ---
diff -urN /usr/ports/devel/tpg/Makefile /home/sgk/ports/devel/tpg/Makefile
--- /usr/ports/devel/tpg/Makefile	Wed Jul  3 04:09:01 2002
+++ /home/sgk/ports/devel/tpg/Makefile	Tue Sep 17 00:51:12 2002
@@ -7,24 +7,29 @@
 #
 
 PORTNAME=	tpg
-PORTVERSION=	2.0.3
+PORTVERSION=	2.1.3
 CATEGORIES=	devel python
 MASTER_SITES=	http://christophe.delord.free.fr/soft/tpg/
 DISTNAME=	${PORTNAME:U}-${PORTVERSION}
-EXTRACT_SUFX=	.tgz
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	sergei@kolobov.com
 
-USE_PYTHON=	yes
-NO_BUILD=	yes
+USE_PYTHON=		yes
+USE_PYDISTUTILS=	yes
+NO_BUILD=		yes
 
-do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/tpg.py ${PYTHONPREFIX_SITELIBDIR}
-	${LN} -fs ${PYTHONPREFIX_SITELIBDIR}/tpg.py ${PREFIX}/bin/tpg
-.if !defined(NOPORTDOCS)
+EXAMPLES=		calc.g calc.py calc2.py notation.py
+
+post-install:
 	@${MKDIR} ${EXAMPLESDIR}
-	${INSTALL_DATA} ${WRKSRC}/TPG/tpg_grammar.g ${EXAMPLESDIR}
-	${CP} -R ${WRKSRC}/TPG/examples/* ${EXAMPLESDIR}
+.for file in ${EXAMPLES}
+	${INSTALL_DATA} ${WRKSRC}/examples/calc/${file} ${EXAMPLESDIR}
+.endfor
+.if !defined(NOPORTDOCS)
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/tpg.pdf ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/*.gif ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>
diff -urN /usr/ports/devel/tpg/distinfo /home/sgk/ports/devel/tpg/distinfo
--- /usr/ports/devel/tpg/distinfo	Wed Jul  3 04:09:01 2002
+++ /home/sgk/ports/devel/tpg/distinfo	Tue Sep 17 00:30:56 2002
@@ -1 +1 @@
-MD5 (TPG-2.0.3.tgz) = d0db96b6de1b0ad9016b1244beddaca4
+MD5 (TPG-2.1.3.tar.gz) = 304d98cb50172c86c4e073294955d28e
diff -urN /usr/ports/devel/tpg/pkg-plist /home/sgk/ports/devel/tpg/pkg-plist
--- /usr/ports/devel/tpg/pkg-plist	Wed Jul  3 04:09:01 2002
+++ /home/sgk/ports/devel/tpg/pkg-plist	Tue Sep 17 00:53:18 2002
@@ -1,13 +1,58 @@
 bin/tpg
-lib/%%PYTHON_VERSION%%/site-packages/tpg.py
-%%PORTDOCS%%share/examples/tpg/calc/calc.g
-%%PORTDOCS%%share/examples/tpg/calc/calc.py
-%%PORTDOCS%%share/examples/tpg/calc/calc2.py
-%%PORTDOCS%%share/examples/tpg/calc/calc3.g
-%%PORTDOCS%%share/examples/tpg/calc/calc3.py
-%%PORTDOCS%%share/examples/tpg/notation/notation.py
-%%PORTDOCS%%share/examples/tpg/readme.txt
-%%PORTDOCS%%share/examples/tpg/tpg_grammar.g
-%%PORTDOCS%%@dirrm share/examples/tpg/calc
-%%PORTDOCS%%@dirrm share/examples/tpg/notation
-%%PORTDOCS%%@dirrm share/examples/tpg
+%%PYTHON_SITELIBDIR%%/tpg/Release.py
+%%PYTHON_SITELIBDIR%%/tpg/Release.pyc
+%%PYTHON_SITELIBDIR%%/tpg/Release.pyo
+%%PYTHON_SITELIBDIR%%/tpg/__init__.py
+%%PYTHON_SITELIBDIR%%/tpg/__init__.pyc
+%%PYTHON_SITELIBDIR%%/tpg/__init__.pyo
+%%PYTHON_SITELIBDIR%%/tpg/base.py
+%%PYTHON_SITELIBDIR%%/tpg/base.pyc
+%%PYTHON_SITELIBDIR%%/tpg/base.pyo
+%%PYTHON_SITELIBDIR%%/tpg/codegen.py
+%%PYTHON_SITELIBDIR%%/tpg/codegen.pyc
+%%PYTHON_SITELIBDIR%%/tpg/codegen.pyo
+%%PYTHON_SITELIBDIR%%/tpg/parser.py
+%%PYTHON_SITELIBDIR%%/tpg/parser.pyc
+%%PYTHON_SITELIBDIR%%/tpg/parser.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/tpg
+%%PORTDOCS%%share/doc/tpg/cmmi10-19.gif
+%%PORTDOCS%%share/doc/tpg/cmsy10-21.gif
+%%PORTDOCS%%share/doc/tpg/cmtt10-20.gif
+%%PORTDOCS%%share/doc/tpg/tpg.html
+%%PORTDOCS%%share/doc/tpg/tpg.pdf
+%%PORTDOCS%%share/doc/tpg/tpg11.html
+%%PORTDOCS%%share/doc/tpg/tpg13.html
+%%PORTDOCS%%share/doc/tpg/tpg14.html
+%%PORTDOCS%%share/doc/tpg/tpg17.html
+%%PORTDOCS%%share/doc/tpg/tpg20.html
+%%PORTDOCS%%share/doc/tpg/tpg23.html
+%%PORTDOCS%%share/doc/tpg/tpg6.html
+%%PORTDOCS%%share/doc/tpg/tpg7.html
+%%PORTDOCS%%share/doc/tpg/tpg8.html
+%%PORTDOCS%%share/doc/tpg/tpg9.html
+%%PORTDOCS%%share/doc/tpg/tpgch1.html
+%%PORTDOCS%%share/doc/tpg/tpgch10.html
+%%PORTDOCS%%share/doc/tpg/tpgch11.html
+%%PORTDOCS%%share/doc/tpg/tpgch12.html
+%%PORTDOCS%%share/doc/tpg/tpgch13.html
+%%PORTDOCS%%share/doc/tpg/tpgch14.html
+%%PORTDOCS%%share/doc/tpg/tpgch2.html
+%%PORTDOCS%%share/doc/tpg/tpgch3.html
+%%PORTDOCS%%share/doc/tpg/tpgch4.html
+%%PORTDOCS%%share/doc/tpg/tpgch5.html
+%%PORTDOCS%%share/doc/tpg/tpgch6.html
+%%PORTDOCS%%share/doc/tpg/tpgch7.html
+%%PORTDOCS%%share/doc/tpg/tpgch8.html
+%%PORTDOCS%%share/doc/tpg/tpgch9.html
+%%PORTDOCS%%share/doc/tpg/tpgli1.html
+%%PORTDOCS%%share/doc/tpg/tpgli2.html
+%%PORTDOCS%%share/doc/tpg/tpgpa1.html
+%%PORTDOCS%%share/doc/tpg/tpgpa2.html
+%%PORTDOCS%%share/doc/tpg/tpgpa3.html
+%%PORTDOCS%%share/doc/tpg/tpgpa4.html
+%%PORTDOCS%%@dirrm share/doc/tpg
+share/examples/tpg/calc.g
+share/examples/tpg/calc.py
+share/examples/tpg/calc2.py
+share/examples/tpg/notation.py
+@dirrm share/examples/tpg
--- tpg-2.1.3.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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