Bug 187639 - [patch] lang/itcl add stage support
Summary: [patch] lang/itcl add stage support
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Rene Ladan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-16 18:10 UTC by Olli Hauer
Modified: 2014-04-04 22:10 UTC (History)
1 user (show)

See Also:


Attachments
itcl_stage.diff (3.21 KB, patch)
2014-03-16 18:10 UTC, Olli Hauer
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olli Hauer freebsd_committer 2014-03-16 18:10:00 UTC
- add stage support to lang/itcl
- make QA script happy s/MAN3/MAN_3/

A copy of the patch can be found here:
http://people.freebsd.org/~ohauer/diffs/itcl_stage.diff
Comment 1 Edwin Groothuis freebsd_committer 2014-03-16 18:10:03 UTC
Maintainer of lang/itcl,

Please note that PR ports/187639 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/187639

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer 2014-03-16 18:10:04 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Rene Ladan freebsd_committer 2014-04-04 22:05:35 UTC
Responsible Changed
From-To: freebsd-ports-bugs->rene

Take
Comment 4 dfilter service freebsd_committer 2014-04-04 22:09:42 UTC
Author: rene
Date: Fri Apr  4 21:09:37 2014
New Revision: 350168
URL: http://svnweb.freebsd.org/changeset/ports/350168
QAT: https://qat.redports.org/buildarchive/r350168/

Log:
  - Stage support
  - Include bsd.port.mk only once
  
  PR:		ports/187639
  Submitted by:	ohauer@
  Approved by:	maintainer timeout (erik@bz.bzflag.bz , 19 days)

Modified:
  head/lang/itcl/Makefile
  head/lang/itcl/pkg-plist

Modified: head/lang/itcl/Makefile
==============================================================================
--- head/lang/itcl/Makefile	Fri Apr  4 20:54:03 2014	(r350167)
+++ head/lang/itcl/Makefile	Fri Apr  4 21:09:37 2014	(r350168)
@@ -29,31 +29,27 @@ PLIST_SUB+=	PORTVERSION=${PORTVERSION} \
 		MAJOR=${PORTVERSION:R:R} \
 		SHORT=${PORTVERSION:R:S/.//}
 
-MANCOMPRESSED=	no
-MANN=		body.itcl class.itcl code.itcl configbody.itcl delete.itcl ensemble.itcl find.itcl \
-		is.itcl itcl.itcl itclvars.itcl local.itcl scope.itcl
-MAN3=		Itcl_RegisterC.3 Itcl_Stack.3 Itcl_Class.3 Itcl_List.3 Itcl_Object.3 Itcl_Preserve.3
-
-NO_STAGE=	yes
-.include <bsd.port.pre.mk>
+MAN_3=		Itcl_RegisterC.3 Itcl_Stack.3 Itcl_Class.3 \
+		Itcl_List.3 Itcl_Object.3 Itcl_Preserve.3
 
 post-patch:
 	${REINPLACE_CMD} -E '/^includedir/s|/include|/include/itcl${PORTVERSION:R}|' \
 	    ${WRKSRC}/${CONFIGURE_SCRIPT}
 
 post-build test:
-	cd ${WRKSRC} && ${SETENV} ITCL_LIBRARY=${WRKSRC}/library \
-		${TCLSH} tests/all.tcl -load "load ./libitcl.so.1"
+	(cd ${WRKSRC} && ${SETENV} ITCL_LIBRARY=${WRKSRC}/library \
+		${TCLSH} tests/all.tcl -load "load ./libitcl.so.1")
 
 post-install:
-	${LN} -sf ${PREFIX}/lib/${PORTNAME}${PORTVERSION:R}/libitcl.so.1 \
-	    ${PREFIX}/lib/libitcl.so.${PORTVERSION:R:R}
-	${LN} -sf ${PREFIX}/lib/${PORTNAME}${PORTVERSION:R}/libitcl.so.1 \
-	    ${PREFIX}/lib/${PORTNAME}${PORTVERSION:R}/libitcl${PORTVERSION:R:S/.//}.so
-	${LN} -sf ${PREFIX}/lib/${PORTNAME}${PORTVERSION:R}/libitcl.so.1 \
-	    ${PREFIX}/lib/libitcl.so
-.for FILE in ${MAN3}
-	${INSTALL_DATA} ${WRKSRC}/doc/${FILE:S/Itcl_//} ${PREFIX}/man/man3/${FILE}
+	${LN} -s libitcl.so.1 \
+	    ${STAGEDIR}${PREFIX}/lib/${PORTNAME}${PORTVERSION:R}/libitcl${PORTVERSION:R:S/.//}.so
+	${LN} -s ${PORTNAME}${PORTVERSION:R}/libitcl.so.1 \
+	    ${STAGEDIR}${PREFIX}/lib/libitcl.so.${PORTVERSION:R:R}
+	${LN} -s ${PORTNAME}${PORTVERSION:R}/libitcl.so.1 \
+	    ${STAGEDIR}${PREFIX}/lib/libitcl.so
+
+.for FILE in ${MAN_3}
+	${INSTALL_DATA} ${WRKSRC}/doc/${FILE:S/Itcl_//} ${STAGEDIR}${MAN3PREFIX}/man/man3/${FILE}
 .endfor
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/lang/itcl/pkg-plist
==============================================================================
--- head/lang/itcl/pkg-plist	Fri Apr  4 20:54:03 2014	(r350167)
+++ head/lang/itcl/pkg-plist	Fri Apr  4 21:09:37 2014	(r350168)
@@ -1,14 +1,32 @@
 include/itcl%%VERSION%%/itcl.h
-include/itcl%%VERSION%%/itclInt.h
 include/itcl%%VERSION%%/itclDecls.h
+include/itcl%%VERSION%%/itclInt.h
 include/itcl%%VERSION%%/itclIntDecls.h
-lib/libitcl.so.%%MAJOR%%
-lib/libitcl.so
-lib/itcl%%VERSION%%/libitcl.so.1
-lib/itcl%%VERSION%%/libitcl%%SHORT%%.so
 lib/itcl%%VERSION%%/itcl.tcl
 lib/itcl%%VERSION%%/itclConfig.sh
+lib/itcl%%VERSION%%/libitcl.so.1
+lib/itcl%%VERSION%%/libitcl%%SHORT%%.so
 lib/itcl%%VERSION%%/libitclstub.a
 lib/itcl%%VERSION%%/pkgIndex.tcl
-@dirrm include/itcl%%VERSION%%
+lib/libitcl.so
+lib/libitcl.so.%%MAJOR%%
+man/man3/Itcl_Class.3.gz
+man/man3/Itcl_List.3.gz
+man/man3/Itcl_Object.3.gz
+man/man3/Itcl_Preserve.3.gz
+man/man3/Itcl_RegisterC.3.gz
+man/man3/Itcl_Stack.3.gz
+man/mann/body.itcl.gz
+man/mann/class.itcl.gz
+man/mann/code.itcl.gz
+man/mann/configbody.itcl.gz
+man/mann/delete.itcl.gz
+man/mann/ensemble.itcl.gz
+man/mann/find.itcl.gz
+man/mann/is.itcl.gz
+man/mann/itcl.itcl.gz
+man/mann/itclvars.itcl.gz
+man/mann/local.itcl.gz
+man/mann/scope.itcl.gz
 @dirrm lib/itcl%%VERSION%%
+@dirrm include/itcl%%VERSION%%
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 5 Rene Ladan freebsd_committer 2014-04-04 22:09:48 UTC
State Changed
From-To: feedback->closed

Committed, thanks