mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-04 11:23:46 +00:00
- Update to 201301
- Add PORTEPOCH - Change maintainer email gmx.ch --> FreeBSD.org - Add license (CCbyNCSA2) - Remove BROKEN and NO_BUILD - USES gmake - Add docs and docs Option - Add pkg-message Approved by: wg/pawel (mentors)
This commit is contained in:
parent
c6a4f22b68
commit
f41c997e80
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=327496
@ -1,30 +1,68 @@
|
||||
# Created by: nemysis@gmx.ch
|
||||
# Created by: nemysis <nemysis@gmx.ch>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= ldraw
|
||||
PORTVERSION= 20120913
|
||||
PORTVERSION= 201301
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= cad
|
||||
MASTER_SITES= http://www.ldraw.org/library/updates/
|
||||
DISTNAME= complete
|
||||
DIST_SUBDIR= ${PORTNAME}
|
||||
|
||||
MAINTAINER= nemysis@gmx.ch
|
||||
MAINTAINER= nemysis@FreeBSD.org
|
||||
COMMENT= LDraw parts library
|
||||
|
||||
LICENSE= CDDL
|
||||
|
||||
BROKEN= Unfetchable due to checksum mismatch
|
||||
USE_ZIP= yes
|
||||
NO_BUILD= yes
|
||||
LICENSE= CDDL CCbyNCSA2
|
||||
LICENSE_COMB= dual
|
||||
LICENSE_NAME_CCbyNCSA2=Attribution-NonCommercial-ShareAlike 2.0 Unported
|
||||
LICENSE_FILE_CCbyNCSA2=${WRKSRC}/CAlicense.txt
|
||||
LICENSE_PERMS_CCbyNCSA2=dist-mirror pkg-mirror auto-accept
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
do-install:
|
||||
@(cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${DATADIR})
|
||||
USE_ZIP= yes
|
||||
USES= gmake
|
||||
|
||||
PORTDOCS= Readme.txt
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
post-extract-script:
|
||||
@(cd ${WRKSRC} && ${UNZIP_CMD} -qo -d ${WRKSRC}/mklist1_4 ${WRKSRC}/mklist1_4.zip)
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|CC=gcc|CC?=gcc|' \
|
||||
-e 's|CFLAGS=|CFLAGS?=|' \
|
||||
${WRKSRC}/mklist1_4/makefile
|
||||
@${REINPLACE_CMD} -e 's|PARTS|parts|' \
|
||||
${WRKSRC}/mklist1_4/mklist.c
|
||||
|
||||
do-build:
|
||||
@(cd ${WRKSRC}/mklist1_4 ; ${GMAKE} ${MAKE_ENV})
|
||||
|
||||
do-install:
|
||||
.for f in models p parts LDCfgalt.ldr LDConfig.ldr LDConfig_TLG.ldr
|
||||
@(cd ${WRKSRC} ; ${COPYTREE_SHARE} ${f} ${DATADIR})
|
||||
.endfor
|
||||
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/mklist1_4/mklist ${DATADIR}
|
||||
@(cd ${DATADIR} ; ./mklist -n)
|
||||
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
@${FIND} ${DATADIR}/ ! -type d | ${SED} 's|^${PREFIX}/||' >> ${TMPPLIST}
|
||||
@${FIND} -ds ${DATADIR}/ -type d | \
|
||||
${SED} -E -e 's,(.*),@unexec ${RMDIR} "\1" 2>/dev/null || true,' >> ${TMPPLIST}
|
||||
|
||||
@${ECHO_CMD}
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
@${ECHO_CMD}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (ldraw/complete.zip) = d6949e51f617ff46457dc5467d9b8d525cf744486ff9f29a49927f6eaa882b79
|
||||
SIZE (ldraw/complete.zip) = 21433103
|
||||
SHA256 (ldraw/complete.zip) = 504b27731cb7d7b83833dff2ca0bd711363f733751d4f3dc6fec6ef86f54d916
|
||||
SIZE (ldraw/complete.zip) = 22915441
|
||||
|
11
cad/ldraw/files/pkg-message.in
Normal file
11
cad/ldraw/files/pkg-message.in
Normal file
@ -0,0 +1,11 @@
|
||||
===============================================================================
|
||||
|
||||
LDraw has been installed.
|
||||
|
||||
You can make parts.lst with
|
||||
|
||||
%%DATADIR%%/mklist -h
|
||||
|
||||
Default is sorted by Description parts.lst (mklist -d). You can change this.
|
||||
|
||||
===============================================================================
|
Loading…
x
Reference in New Issue
Block a user