Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 May 2013 09:05:14 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r318664 - in head/emulators/hfs: . scripts
Message-ID:  <201305210905.r4L95E5h004487@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Tue May 21 09:05:14 2013
New Revision: 318664
URL: http://svnweb.freebsd.org/changeset/ports/318664

Log:
  - Trim Makefile header per new world order
  - Use DISTVERSION because it contains underscore instead of dot
  - Define LICENSE (GPLv2)
  - Install README file (as PORTDOCS)
  - Remove custom configure script: pass variables to make(1) instead
  - Respect CFLAGS (original "-O" probably was sensible default 18.5
    years ago when the port was first added, but makes no sense now)
  - Remove no-op `pre-install' target (do not create directories that
    are part of the mtree)
  - Cleanup and reformat port description while here
  
  This port (along with similar `emulators/hfsutils') should probably
  be moved to sysutils; `sysutils/hfsexplorer' already lives there.

Deleted:
  head/emulators/hfs/scripts/
Modified:
  head/emulators/hfs/Makefile
  head/emulators/hfs/pkg-descr

Modified: head/emulators/hfs/Makefile
==============================================================================
--- head/emulators/hfs/Makefile	Tue May 21 08:59:02 2013	(r318663)
+++ head/emulators/hfs/Makefile	Tue May 21 09:05:14 2013	(r318664)
@@ -1,33 +1,41 @@
-# New ports collection makefile for:    hfs
-# Date created:         17 November 1994
-# Whom:                 jmz
-#
+# Created by: Jean-Marc Zucconi <jmz@FreeBSD.org>
 # $FreeBSD$
-#
 
 PORTNAME=	hfs
-PORTVERSION=	0.37
+DISTVERSION=	0_37
 PORTREVISION=	1
 CATEGORIES=	emulators
-MASTER_SITES=	${MASTER_SITE_LOCAL}
-MASTER_SITE_SUBDIR=	jmz
-DISTNAME=	${PORTNAME}${PORTVERSION:S/./_/}
+MASTER_SITES=	LOCAL/jmz
+DISTNAME=	${PORTNAME}${DISTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	Read Macintosh HFS floppy disks, hard drives, and CDROMs
+COMMENT=	Read Macintosh HFS floppy disks, hard drives, and CD-ROMs
+
+LICENCE=	GPLv2
 
 CONFLICTS=	hfsutils-[0-9]*
 
 USE_GMAKE=	yes
+MAKE_ARGS=	CCPLUSPLUS="${CXX} -c" LD="${CXX}" DEBUG="${CFLAGS}" \
+		INSTALLPATH="${PREFIX}" MANINSTALLDIR="${MANPREFIX}/man/man1"
+
 MAN1=		hfs.1
 PLIST_FILES=	bin/hfs
+PORTDOCS=	README
+
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.options.mk>
 
 post-patch:
+	@${REINPLACE_CMD} -e 's|/usr/.* ||' ${WRKSRC}/Makefile
 	@${REINPLACE_CMD} -e 's|Volume::Enumerate|Enumerate|' \
 		${WRKSRC}/volume.h
 
-pre-install:
-	@${MKDIR} ${PREFIX}/bin
-	@${MKDIR} ${PREFIX}/man/man1
+post-install:
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
+.endif
 
 .include <bsd.port.mk>

Modified: head/emulators/hfs/pkg-descr
==============================================================================
--- head/emulators/hfs/pkg-descr	Tue May 21 08:59:02 2013	(r318663)
+++ head/emulators/hfs/pkg-descr	Tue May 21 09:05:14 2013	(r318664)
@@ -1,10 +1,9 @@
-hfs provides a command line interface to suite of functions for
-accessing Macintosh HFS floppy disks, hard drives and CD-ROMS. The
-following functions are available:
+This port provides command line utility for accessing Macintosh HFS floppy
+disks, hard drives, and CD-ROMs.  The following functions are available:
 
-- display a directory listing (ls, dir)
-- change directories (cd)
-- display the name of the current directory (pwd)
-- copy an HFS file into a local file (read)
-- display the contents of an HFS file (cat)
-- display the partition table on a Macintosh volume.
+  - Display a directory listing (ls, dir)
+  - Change directories (cd)
+  - Display the name of the current directory (pwd)
+  - Copy an HFS file into a local file (read)
+  - Display the contents of an HFS file (cat)
+  - Display the partition table on a Macintosh volume



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