diff options
author | danfe <danfe@FreeBSD.org> | 2012-02-12 17:59:54 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2012-02-12 17:59:54 +0800 |
commit | f6f94fe4c2eddba8e78bea600071c61f43818e87 (patch) | |
tree | 8fcbd3e202c451c46421157ba97c2b75bf52b3e8 /archivers | |
parent | 4f927ab0abe95f1b93b4dd8d7885316c860aec09 (diff) | |
download | freebsd-ports-gnome-f6f94fe4c2eddba8e78bea600071c61f43818e87.tar.gz freebsd-ports-gnome-f6f94fe4c2eddba8e78bea600071c61f43818e87.tar.zst freebsd-ports-gnome-f6f94fe4c2eddba8e78bea600071c61f43818e87.zip |
- Switch to .tar.gz distfile (contents are identical, but new file is a bit
smaller and does not require external EXTRACT_DEPENDS)
- Do not hardcode list of programs twice, use ${PLIST_FILES:T} second time
- Use official spelling of PKZIP in COMMENT
- Unsplit PLIST_FILES definitions (join into one line) similar to MAN1
- Install seemingly useful documentation files
- Pacify portlint(1) and cleanup things a bit
- Canonicalize and reformat Makefile header while I am here
Diffstat (limited to 'archivers')
-rw-r--r-- | archivers/zip/Makefile | 34 | ||||
-rw-r--r-- | archivers/zip/distinfo | 4 |
2 files changed, 20 insertions, 18 deletions
diff --git a/archivers/zip/Makefile b/archivers/zip/Makefile index 4208f7a32448..0c7154a2e784 100644 --- a/archivers/zip/Makefile +++ b/archivers/zip/Makefile @@ -1,6 +1,6 @@ -# New ports collection makefile for: zip -# Date created: 22 Dec 1994 -# Whom: ache +# New ports collection makefile for: Info-ZIP +# Date created: 22 Dec 1994 +# Whom: Andrey Chernov <ache@FreeBSD.org> # # $FreeBSD$ # @@ -9,27 +9,29 @@ PORTNAME= zip PORTVERSION= 3.0 CATEGORIES= archivers MASTER_SITES= SF/info${PORTNAME}/Zip%203.x%20%28latest%29/${PORTVERSION} -DISTFILES= ${PORTNAME}30${EXTRACT_SUFX} -USE_ZIP= yes +DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g} MAINTAINER= ports@FreeBSD.org -COMMENT= Create/update ZIP files compatible with pkzip +COMMENT= Create/update ZIP files compatible with PKZIP -WRKSRC= ${WRKDIR}/${PORTNAME}30 MAKEFILE= unix/Makefile ALL_TARGET= generic -MAN1= zip.1 zipcloak.1 zipnote.1 zipsplit.1 -PLIST_FILES= \ - bin/zip \ - bin/zipcloak \ - bin/zipnote \ - bin/zipsplit +PLIST_FILES= bin/zip bin/zipcloak bin/zipnote bin/zipsplit +MAN1= zip.1 zipcloak.1 zipnote.1 zipsplit.1 +PORTDOCS= * do-install: -.for file in zip zipcloak zipnote zipsplit - ${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/man/${file}.1 ${PREFIX}/man/man1 +.for p in ${PLIST_FILES:T} + ${INSTALL_PROGRAM} ${WRKSRC}/${p} ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/man/${p}.1 ${MANPREFIX}/man/man1 .endfor +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +# License is BSD-based, but not identical, so intall with documentation +. for d in CHANGES LICENSE README* TODO WHATSNEW WHERE + ${INSTALL_DATA} ${WRKSRC}/${d} ${DOCSDIR} +. endfor +.endif .include <bsd.port.mk> diff --git a/archivers/zip/distinfo b/archivers/zip/distinfo index ff1026fc1c52..b5e379002be0 100644 --- a/archivers/zip/distinfo +++ b/archivers/zip/distinfo @@ -1,2 +1,2 @@ -SHA256 (zip30.zip) = 7061ceac0407682b6dc54bb480347205f680f4e56cf34fe1423df2309f18968a -SIZE (zip30.zip) = 1287223 +SHA256 (zip30.tar.gz) = f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369 +SIZE (zip30.tar.gz) = 1118845 |