ports/159489: Update port: print/xtexsh

KATO Tsuguru tkato432 at yahoo.com
Wed Aug 3 18:40:36 UTC 2011


>Number:         159489
>Category:       ports
>Synopsis:       Update port: print/xtexsh
>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:   Wed Aug 03 18:40:36 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p2 i386
>Organization:
>Environment:
>Description:
- Update MASTER_SITES and WWW: line
- Support USE_TK_WRAPPER
- Support INSTALL_ICONS

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/print/xtexsh/Makefile print/xtexsh/Makefile
--- /usr/ports/print/xtexsh/Makefile	2011-08-03 15:46:08.000000000 +0900
+++ print/xtexsh/Makefile	2011-08-04 02:27:01.000000000 +0900
@@ -7,40 +7,48 @@
 
 PORTNAME=	xtexsh
 PORTVERSION=	1.4.2
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	print
-MASTER_SITES=	ftp://ftp.mat.univie.ac.at/pub/teschl/xtexsh/
-DISTNAME=	${PORTNAME}-1.4-2
+MASTER_SITES=	http://www.mat.univie.ac.at/~gerald/ftp/xtexsh/
+DISTNAME=	${PORTNAME}-${PORTVERSION:R}-${PORTVERSION:E}
 
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Tcl/Tk-based simple TeX interface
 
-DEPRECATED=	No more public distfiles
-EXPIRATION_DATE=	2011-09-01
+RUN_DEPENDS=	latex:${PORTSDIR}/print/teTeX-base
 
-BROKEN=	Does not fetch
+LICENSE=	GPLv2 GPLv3
+LICENSE_COMB=	dual
 
-RUN_DEPENDS=	tex:${PORTSDIR}/print/teTeX \
-		wish8.4:${PORTSDIR}/x11-toolkits/tk84
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
+NO_BUILD=	yes
 
-WRKSRC=		${WRKDIR}/${PORTNAME}-1.4
+USE_TK_WRAPPER=	yes
+INSTALLS_ICONS=	yes
 
-NO_BUILD=	yes
-MAN1=		xtexsh.1
 MANCOMPRESSED=	yes
+MAN1=		xtexsh.1
 
 post-patch:
-	@${REINPLACE_CMD} -e 's,/usr/bin/wish,${PREFIX}/bin/wish8.4,; \
-		s,/etc,${PREFIX}/etc,; s,bash,sh,' ${WRKSRC}/xtexsh
+	@${REINPLACE_CMD} -e \
+		's|/usr/bin|${LOCALBASE}/bin|g ; \
+		 s|"/etc|"${PREFIX}/etc| ; \
+		 s|exec bash|exec sh|' ${WRKSRC}/xtexsh
 
 do-install:
-	@${INSTALL_SCRIPT} ${WRKSRC}/xtexsh ${PREFIX}/bin
-	@${INSTALL_MAN} ${WRKSRC}/xtexsh.1.gz ${PREFIX}/man/man1
-	@${INSTALL_DATA} ${WRKSRC}/xtexshrc ${PREFIX}/etc/xtexshrc
-	@${MKDIR} ${PREFIX}/share/xtexsh
-.for f in xtexsh-mini.png xtexsh.png xtexsh.desktop xtexsh.spec
-	@${INSTALL_DATA} ${WRKSRC}/${f} ${DATADIR}
-.endfor
+	${INSTALL_SCRIPT} ${WRKSRC}/xtexsh ${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/xtexsh.1.gz ${MANPREFIX}/man/man1
+	${INSTALL_DATA} ${WRKSRC}/xtexshrc ${PREFIX}/etc
+	@${MKDIR} ${PREFIX}/share/applications
+	${INSTALL_DATA} ${WRKSRC}/xtexsh.desktop ${PREFIX}/share/applications
+	@${MKDIR} ${PREFIX}/share/icons/locolor/16x16/apps
+	${INSTALL_DATA} ${WRKSRC}/xtexsh-mini.png \
+		${PREFIX}/share/icons/locolor/16x16/apps/xtexsh.png
+	@${MKDIR} ${PREFIX}/share/icons/locolor/32x32/apps
+	${INSTALL_DATA} ${WRKSRC}/xtexsh.png \
+		${PREFIX}/share/icons/locolor/32x32/apps/xtexsh.png
+	@${MKDIR} ${PREFIX}/share/pixmaps
+	${INSTALL_DATA} ${WRKSRC}/xtexsh.png ${PREFIX}/share/pixmaps
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
diff -urN /usr/ports/print/xtexsh/pkg-plist print/xtexsh/pkg-plist
--- /usr/ports/print/xtexsh/pkg-plist	2010-01-31 17:21:16.000000000 +0900
+++ print/xtexsh/pkg-plist	2011-07-25 15:32:40.000000000 +0900
@@ -2,9 +2,15 @@
 etc/xtexshrc
 %%PORTDOCS%%%%DOCSDIR%%/README
 %%PORTDOCS%%%%DOCSDIR%%/index.html
-%%DATADIR%%/xtexsh-mini.png
-%%DATADIR%%/xtexsh.desktop
-%%DATADIR%%/xtexsh.png
-%%DATADIR%%/xtexsh.spec
- at dirrm %%DATADIR%%
+share/applications/xtexsh.desktop
+share/icons/locolor/16x16/apps/xtexsh.png
+share/icons/locolor/32x32/apps/xtexsh.png
+share/pixmaps/xtexsh.png
+ at dirrmtry share/icons/locolor/32x32/apps
+ at dirrmtry share/icons/locolor/32x32
+ at dirrmtry share/icons/locolor/16x16/apps
+ at dirrmtry share/icons/locolor/16x16
+ at dirrmtry share/icons/locolor
+ at dirrmtry share/icons
 %%PORTDOCS%%@dirrm %%DOCSDIR%%
+ at dirrmtry share/applications
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list