From owner-svn-ports-head@FreeBSD.ORG Mon Feb 3 11:09:45 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3E44E9DD; Mon, 3 Feb 2014 11:09:45 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1DAC11BD2; Mon, 3 Feb 2014 11:09:45 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id s13B9iZS040294; Mon, 3 Feb 2014 11:09:44 GMT (envelope-from nemysis@svn.freebsd.org) Received: (from nemysis@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s13B9isl040290; Mon, 3 Feb 2014 11:09:44 GMT (envelope-from nemysis@svn.freebsd.org) Message-Id: <201402031109.s13B9isl040290@svn.freebsd.org> From: Rusmir Dusko Date: Mon, 3 Feb 2014 11:09:44 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r342419 - in head/math/ndiff: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Feb 2014 11:09:45 -0000 Author: nemysis Date: Mon Feb 3 11:09:44 2014 New Revision: 342419 URL: http://svnweb.freebsd.org/changeset/ports/342419 QAT: https://qat.redports.org/buildarchive/r342419/ Log: - Remove PKGNAMEPREFIX - Change comment - Pass maintainership to submitter - Add license (GPLv2) - Support STAGEDIR - Simplify Option handling, change GMP Option - Add USES desthack, change REINPLACE and patch-Makefile.in - Use PLIST_FILES and PLIST_DIRS instead of pkg-plist - Change DOCS and add DOCS Option PR: ports/186243 Submitted by: Luca Pizzamiglio Deleted: head/math/ndiff/pkg-plist Modified: head/math/ndiff/Makefile head/math/ndiff/files/patch-Makefile.in Modified: head/math/ndiff/Makefile ============================================================================== --- head/math/ndiff/Makefile Mon Feb 3 11:03:15 2014 (r342418) +++ head/math/ndiff/Makefile Mon Feb 3 11:09:44 2014 (r342419) @@ -6,51 +6,49 @@ PORTVERSION= 2.00 PORTREVISION= 4 CATEGORIES= math MASTER_SITES= ftp://ftp.math.utah.edu/pub/misc/ -PKGNAMEPREFIX= -MAINTAINER= ports@FreeBSD.org -COMMENT= Compare putatively similar files, ignoring small numeric differences +MAINTAINER= luca.pizzammiglio@gmail.com +COMMENT= Compare files, ignoring numeric differences -NO_STAGE= yes -.include +LICENSE= GPLv2 -.if !defined(WITHOUT_GMP) -LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp -CFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -CONFIGURE_ARGS= --with-gmp -.else +USES= desthack +GNU_CONFIGURE= yes + +PLIST_FILES= bin/${PORTNAME} \ + man/man1/${PORTNAME}.1.gz \ + %%DATADIR%%/${PORTNAME}.awk +PLIST_DIRS= %%DATADIR%% + +PORTDOCS= *.html *.pdf *.ps *.txt + +OPTIONS_DEFINE= DOCS GMP + +GMP_LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp +GMP_CFLAGS= -I${LOCALBASE}/include +GMP_LDFLAGS= -L${LOCALBASE}/lib +GMP_CONFIGURE_ON= --with-gmp + +.include + +.if ! ${PORT_OPTIONS:MGMP} .if ${ARCH} == sparc64 -CONFIGURE_ARGS= --with-long-double +CONFIGURE_ARGS+= --with-long-double .else -CONFIGURE_ARGS= --with-double +CONFIGURE_ARGS+= --with-double .endif .endif -GNU_CONFIGURE= yes -ALL_TARGET= all check-runs - -MAN1= ndiff.1 -.if !defined(NOPORTDOCS) -PORTDOCS= * -.endif - post-patch: - @${REINPLACE_CMD} -e "s:%%DATADIR%%:${DATADIR}:g" ${WRKSRC}/Makefile.in - -post-build: - @${ECHO_MSG} "If there were no errors in the above checks then type" - @${ECHO_MSG} - @${ECHO_MSG} " ${MAKE} install" - @${ECHO_MSG} - @${ECHO_MSG} "to install ${PORTNAME}-${PORTVERSION}" + ${REINPLACE_CMD} -e \ + 's|$$(shrlibtop)/$$(PROGNAME)-$$(VERSION)|$${DESTDIR}${DATADIR}|; \ + s|.*shrlibtop.*||; \ + s|664|644|' ${WRKSRC}/Makefile.in post-install: -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.pdf ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.ps ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.html ${DOCSDIR} -.endif + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} -.include +.include Modified: head/math/ndiff/files/patch-Makefile.in ============================================================================== --- head/math/ndiff/files/patch-Makefile.in Mon Feb 3 11:03:15 2014 (r342418) +++ head/math/ndiff/files/patch-Makefile.in Mon Feb 3 11:09:44 2014 (r342419) @@ -1,24 +1,14 @@ ---- Makefile.in.orig Tue Dec 12 11:11:11 2000 -+++ Makefile.in Wed Dec 15 23:53:21 2004 -@@ -64,8 +64,7 @@ - catdir = $(prefix)/man/cat$(manext) - mandir = $(prefix)/man/man$(manext) - manext = 1 --shrlibdir = $(shrlibtop)/$(PROGNAME)-$(VERSION) --shrlibtop = $(prefix)/share/lib/$(PROGNAME) -+shrlibdir = %%DATADIR%% - - FTPDIR = /u/ftp/pub/misc - +--- Makefile.in.orig 2000-12-12 19:11:11.000000000 +0100 ++++ Makefile.in 2014-02-02 11:56:29.000000000 +0100 @@ -191,9 +190,9 @@ DEFINES = -DVERSION='"@VERSION@"' -DDATE='"@DATE@"' $(XDEFINES) -INCLUDES = -I. -I$(prefix)/include $(XINCLUDES) -+INCLUDES = -I. $(XINCLUDES) ++INCLUDES ?= -I. $(XINCLUDES) -LDFLAGS = @LDFLAGS@ -L$(prefix)/lib $(XLDFLAGS) -+LDFLAGS = @LDFLAGS@ $(XLDFLAGS) ++LDFLAGS ?= @LDFLAGS@ $(XLDFLAGS) LIBS = @LIBS@ $(XLIBS) @@ -34,11 +24,11 @@ $(SEDCMD) $$f | $(CHECKSUM) > $(bindir)/$$g ; \ - $(LN) $(bindir)/$$g $(bindir)/$$g-$(VERSION) ; \ - $(CHMOD) 775 $(bindir)/$$g $(bindir)/$$g-$(VERSION) ; \ -+ $(CHMOD) 775 $(bindir)/$$g ; \ ++ $(CHMOD) 755 $(bindir)/$$g ; \ done ; \ fi -@@ -635,15 +632,13 @@ +@@ -635,7 +632,7 @@ install-show: @echo '' @echo Installed files... @@ -47,15 +37,6 @@ @$(LS) -l $(mandir)/$(PROGNAME).$(manext) @if test -d $(shrlibdir) ; then $(LS) -lR $(shrlibdir)/* ; fi @echo '' - - install-shrlib: uninstall-shrlib -- -$(MKDIR) $(shrlibtop) -- @if test -d $(shrlibtop) ; then true ; else echo Cannot create $(shrlibtop) ; exit 1 ; fi -- -$(MKDIR) $(shrlibdir) -+ -$(MKDIR) -p $(shrlibdir) - @if test -d $(shrlibdir) ; then true ; else echo Cannot create $(shrlibdir) ; exit 1 ; fi - for f in $(SHRLIBFILES) ; \ - do \ @@ -703,7 +698,7 @@ uninstall-exe: -for f in $(PROGRAMS) ; \