diff options
author | Alan Eldridge <alane@FreeBSD.org> | 2002-11-19 01:15:31 +0000 |
---|---|---|
committer | Alan Eldridge <alane@FreeBSD.org> | 2002-11-19 01:15:31 +0000 |
commit | c66cf7df0a17d900d05033ef493d1a2af277a761 (patch) | |
tree | 23b225e98393a470cd549196fd752f5f6cea4518 /editors/leo | |
parent | gtk12-apireference: set the prefix to x11base (diff) |
* PORTREVISION => 2.
* Added examples files.
* Revised the way vars are used to a more general way that I can reuse.
* Defined vars for the various dirs and their subdir equivs. that a port
may need.
* Moved the distfiles to their own subdir of $DISTDIR, cause there's 6 of
them now.
Notes
Notes:
svn path=/head/; revision=70445
Diffstat (limited to 'editors/leo')
-rw-r--r-- | editors/leo/Makefile | 37 | ||||
-rw-r--r-- | editors/leo/distinfo | 8 |
2 files changed, 34 insertions, 11 deletions
diff --git a/editors/leo/Makefile b/editors/leo/Makefile index 168431693336..8cb43f2f7a35 100644 --- a/editors/leo/Makefile +++ b/editors/leo/Makefile @@ -9,12 +9,13 @@ PORTNAME= leo PORTVERSION= 3.8 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 0 CATEGORIES= editors MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} -DISTFILES= ${DISTNAME} SbooksLeo +DISTFILES= ${DISTNAME}.zip ${SBOOKFILE} ${EXAMPLESFILES} +DIST_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME} MAINTAINER= alane@freebsd.org @@ -26,21 +27,36 @@ NO_BUILD= yes .include <bsd.port.pre.mk> +ICONSDIR= ${LOCALBASE}/share/icons +DESKTOPDIR= ${LOCALBASE}/share/applnk + SBOOKNAME= SbooksLeo +SBOOKFILE= ${SBOOKNAME}.zip TUTORIALDIR= ${DOCSDIR}/${SBOOKNAME} +EXAMPLES= cweb.leo noweb.leo python.leo tkinter.leo +EXAMPLESFILES= ${EXAMPLES:S|leo$|leo.zip|} + PLIST= ${WRKDIR}/plist +BINDIR= ${PREFIX}/bin DATADIR= ${PREFIX}/share +ETCDIR= ${PREFIX}/etc +LIBDIR= ${PREFIX}/lib PKGDATADIR= ${DATADIR}/${DISTNAME} -DOCS_SUBDIR= ${DOCSDIR:S|^${PREFIX}/||} -PKGDATA_SUBDIR= ${PKGDATADIR:S|^${PREFIX}/||} +BIN_SUBDIR= ${BINDIR:S|^${PREFIX}/||} +DATA_SUBDIR= ${DATADIR:S|^${PREFIX}/||} +DOCS_SUBDIR= ${DOCSDIR:S|^${PREFIX}/||} +ETC_SUBDIR= ${ETCDIR:S|^${PREFIX}/||} +EXAMPLES_SUBDIR= ${EXAMPLESDIR:S|^${PREFIX}/||} +LIB_SUBDIR= ${LIBDIR:S|^${PREFIX}/||} +PKGDATA_SUBDIR= ${PKGDATADIR:S|^${PREFIX}/||} .if defined(NOPORTDOCS) ALL_SUBDIRS= ${PKGDATA_SUBDIR} .else -ALL_SUBDIRS= ${PKGDATA_SUBDIR} ${DOCS_SUBDIR} +ALL_SUBDIRS= ${PKGDATA_SUBDIR} ${DOCS_SUBDIR} ${EXAMPLES_SUBDIR} .endif # defined(NOPORTDOCS) CPIO?= /usr/bin/cpio @@ -60,17 +76,20 @@ do-install: | ${CPIO} -pdmv -R ${DOCOWN}:${DOCGRP} ${TUTORIALDIR} # fix docs perms ${FIND} ${DOCSDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} ${DOCMODE} +# install examples + ${MKDIR} ${EXAMPLESDIR} + cd ${WRKDIR}; ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR} .endif # !defined(NOPORTDOCS) # fix dir perms cd ${PREFIX}; ${FIND} ${ALL_SUBDIRS} -type d -print0 \ | ${XARGS} -0 ${CHMOD} ${BINMODE} # create start script ${SED} -e 's|@PKGDATADIR@|${PKGDATADIR}|' \ - <${FILESDIR}/leo.in >${LOCALBASE}/bin/leo - ${CHMOD} ${BINMODE} ${LOCALBASE}/bin/leo - ${CHOWN} ${BINOWN}:${BINGRP} ${LOCALBASE}/bin/leo + <${FILESDIR}/leo.in >${BINDIR}/leo + ${CHMOD} ${BINMODE} ${BINDIR}/leo + ${CHOWN} ${BINOWN}:${BINGRP} ${BINDIR}/leo # build plist: bin - ${ECHO_CMD} "bin/leo" >${PLIST} + ${ECHO_CMD} "${BIN_SUBDIR}/leo" >${PLIST} # build plist: files cd ${PREFIX}; ${FIND} ${ALL_SUBDIRS} -type f \ | ${SORT} >>${PLIST} diff --git a/editors/leo/distinfo b/editors/leo/distinfo index e911ca48d08e..37c5687be1f5 100644 --- a/editors/leo/distinfo +++ b/editors/leo/distinfo @@ -1,2 +1,6 @@ -MD5 (leo-3.8) = e54e75266c1bc7541f682fbd7e72c39e -MD5 (SbooksLeo) = ad62f8cc3bd44c5fbb1fe49a26ad6795 +MD5 (leo/leo-3.8.zip) = e54e75266c1bc7541f682fbd7e72c39e +MD5 (leo/SbooksLeo.zip) = ad62f8cc3bd44c5fbb1fe49a26ad6795 +MD5 (leo/cweb.leo.zip) = c4c278fe1ae775f4368905f33e35217d +MD5 (leo/noweb.leo.zip) = 7052a7fe0b6827d3bfaf3bd0d5505009 +MD5 (leo/python.leo.zip) = 5fd91ce6402a9040ec9aaa40dd9a61c7 +MD5 (leo/tkinter.leo.zip) = 56847ff596594223db795bcc2a93cd68 |