Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jul 2013 08:06:12 +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: r323872 - head/sysutils/gaffitter
Message-ID:  <201307290806.r6T86C0N098716@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Mon Jul 29 08:06:12 2013
New Revision: 323872
URL: http://svnweb.freebsd.org/changeset/ports/323872

Log:
  - Fix parallel builds, by fixing makefile and USES'ing gmake
  - Always install manual pages like we normally do
  - Cleanup Makefile header and COMMENT line while here
  - Synchronize port description text with upstream
  
  Reported by:	pointyhat-west

Modified:
  head/sysutils/gaffitter/Makefile
  head/sysutils/gaffitter/pkg-descr

Modified: head/sysutils/gaffitter/Makefile
==============================================================================
--- head/sysutils/gaffitter/Makefile	Mon Jul 29 08:00:06 2013	(r323871)
+++ head/sysutils/gaffitter/Makefile	Mon Jul 29 08:06:12 2013	(r323872)
@@ -1,4 +1,4 @@
-# Created by: corky1951@comcast.net
+# Created by: Charlie Kester <corky1951@comcast.net>
 # $FreeBSD$
 
 PORTNAME=	gaffitter
@@ -8,22 +8,23 @@ CATEGORIES=	sysutils
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}/
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	Bin packing utility that uses a genetic algorithm
+COMMENT=	Binary packing utility that uses a genetic algorithm
 
 LICENSE=	GPLv3 # or later
 
 USE_BZIP2=	yes
+USES=		gmake	# parallel builds (-jX) are broken with BSD make(1)
 
-.if !defined(NO_INSTALL_MANPAGES)
 MAN1=		${PORTNAME}.1
-.endif
-
 PLIST_FILES=	bin/${PORTNAME}
 
+# Change "cd foo; $(MAKE)" into "$(MAKE) -C foo" to unbreak parallel builds
+post-patch:
+	@${REINPLACE_CMD} -E 's|cd (.+); (\$$\(MAKE\))|\2 -C \1|' \
+		${WRKSRC}/Makefile
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin
-.if !defined(NO_INSTALL_MANPAGES)
 	${INSTALL_MAN} ${FILESDIR}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1
-.endif
 
 .include <bsd.port.mk>

Modified: head/sysutils/gaffitter/pkg-descr
==============================================================================
--- head/sysutils/gaffitter/pkg-descr	Mon Jul 29 08:00:06 2013	(r323871)
+++ head/sysutils/gaffitter/pkg-descr	Mon Jul 29 08:06:12 2013	(r323872)
@@ -1,15 +1,9 @@
-Genetic Algorithm File Fitter, GAFFitter for short, is a tool based
-on a genetic algorithm (GA) that tries to fit a collection of items
-into as few as possible volumes of a specific size.
+Genetic Algorithm File Fitter, or just GAFFitter, is a command-line software
+written in C++ that arranges -- via a genetic algorithm -- an input list of
+items or files/directories into volumes of a certain capacity (target), such
+as CD or DVD, in a way that the total wastage is minimized.
 
-For example, the items might be files/directories and the volumes
-might be CDs or DVDs.
+By smartly arranging the input list, GAFFitter fits better the given items
+and so optimizes (reduces) the number of required volumes to pack them.
 
-The task of arranging items in such manner that the number of
-required bins is minimized is called Bin Packing, a NP-hard
-combinatorial problem for which no deterministic polynomial-time
-algorithm is known. Using heuristics, such as GAs, it is usually
-possible to approximate -- and often reach -- the best solution for
-the problem within a reasonable time.
-
-WWW: http://gaffitter.sourceforge.net
+WWW: http://gaffitter.sourceforge.net/



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