Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Feb 2014 18:09:50 +0400 (MSK)
From:      Pavel I Volkov <pavelivolkov@gmail.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/186561: [MAINTAINER] lang/ficl: added header files to packet
Message-ID:  <201402081409.s18E9oHU014144@be.dns4soho.net>
Resent-Message-ID: <201402081420.s18EK0Cm088344@freefall.freebsd.org>

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

>Number:         186561
>Category:       ports
>Synopsis:       [MAINTAINER] lang/ficl: added header files to packet
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 08 14:20:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Pavel I Volkov
>Release:        FreeBSD 9.2-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD be.dns4soho.net 9.2-RELEASE-p3 FreeBSD 9.2-RELEASE-p3 #4 r260656: Wed Jan 15 11:21:37 MSK
>Description:
- I'm added installation for header files and other data.

Generated with FreeBSD Port Tools 0.99_11 (mode: change, diff: suffix)
>How-To-Repeat:
>Fix:

--- ficl-4.1.0_1.patch begins here ---
diff -ruN ../ficl.orig/Makefile ./Makefile
--- ../ficl.orig/Makefile	2014-02-08 18:01:04.000000000 +0400
+++ ./Makefile	2014-02-08 17:54:30.000000000 +0400
@@ -3,6 +3,7 @@
 
 PORTNAME=	ficl
 PORTVERSION=	4.1.0
+PORTREVISION=	1
 CATEGORIES=	lang
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-all/${PORTNAME}${PORTVERSION:C/([[:digit:]]+\.[[:digit:]]+)\.0/\1/}
 
@@ -14,32 +15,48 @@
 LICENSE_TEXT=	Description of the license can be obtained from the following URL: http://ficl.sourceforge.net/license.html
 LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 
-OPTIONS_DEFINE=	DOCS
+OPTIONS_DEFINE=	DATA DOCS
+OPTIONS_DEFAULT=	DATA
 
 MAKE_JOBS_UNSAFE=	YES
 
 ONLY_FOR_ARCHS=	i386 amd64
-ONLY_FOR_ARCHS_REASON=	this port is not tested on anything other than i386 and amd64
+ONLY_FOR_ARCHS_REASON=	this port does not tested on anything other than i386 and amd64
 
 USE_LDCONFIG=	YES
 
 ALL_TARGET=	lib ${PORTNAME}
 
-PLIST_FILES=	bin/${PORTNAME} lib/lib${PORTNAME}.so lib/lib${PORTNAME}.so.${PORTVERSION} lib/lib${PORTNAME}.a
+PLIST_FILES=	bin/${PORTNAME}
+PLIST_FILES+=	include/ficl.h include/ficlcompatibility.h include/ficllocal.h include/ficltokens.h include/ficlplatform/unix.h
+PLIST_FILES+=	lib/lib${PORTNAME}.so lib/lib${PORTNAME}.so.${PORTVERSION} lib/lib${PORTNAME}.a
+PLIST_DIRS=	include/ficlplatform
 
 PORTDOCS=	*
+PORTDATA=	*
 
 .include <bsd.port.options.mk>
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}*.h ${STAGEDIR}${PREFIX}/include
 	${INSTALL_LIB} ${WRKSRC}/lib${PORTNAME}.a ${STAGEDIR}${PREFIX}/lib
 	${INSTALL_LIB} ${WRKSRC}/lib${PORTNAME}.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib
 	cd ${STAGEDIR}${PREFIX}/lib && ${LN} -sf lib${PORTNAME}.so.${PORTVERSION} lib${PORTNAME}.so
 
 post-install:
+	@${MKDIR} ${STAGEDIR}${PREFIX}/include/ficlplatform
+	${INSTALL_DATA} ${WRKSRC}/ficlplatform/unix.h ${STAGEDIR}${PREFIX}/include/ficlplatform
+.if ${PORT_OPTIONS:MDATA}
+	@${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${DATADIR}/contrib ${STAGEDIR}${DATADIR}/contrib/xclasses \
+		${STAGEDIR}${DATADIR}/ficlplatform ${STAGEDIR}${DATADIR}/softcore ${STAGEDIR}${DATADIR}/test
+	${INSTALL_DATA} ${WRKSRC}/contrib/xclasses/* ${STAGEDIR}${DATADIR}/contrib/xclasses
+	${INSTALL_DATA} ${WRKSRC}/ficlplatform/unix.c ${STAGEDIR}${DATADIR}/ficlplatform
+	${INSTALL_DATA} ${WRKSRC}/softcore/* ${STAGEDIR}${DATADIR}/softcore
+	${INSTALL_DATA} ${WRKSRC}/test/* ${STAGEDIR}${DATADIR}/test
+.endif
 .if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${DOCSDIR}/articles ${STAGEDIR}${DOCSDIR}/graphics; \
+	@${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${DOCSDIR}/articles ${STAGEDIR}${DOCSDIR}/graphics
 	${INSTALL_DATA} ${WRKSRC}/doc/*.html ${WRKSRC}/doc/*.ico ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/doc/articles/* ${STAGEDIR}${DOCSDIR}/articles
 	${INSTALL_DATA} ${WRKSRC}/doc/graphics/* ${STAGEDIR}${DOCSDIR}/graphics
--- ficl-4.1.0_1.patch ends here ---

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



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