Date: Wed, 19 Jun 2013 18:38:46 +0000 (UTC) From: Boris Samorodov <bsam@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r321303 - head/biology/mopac Message-ID: <201306191838.r5JIckYY026558@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bsam Date: Wed Jun 19 18:38:46 2013 New Revision: 321303 URL: http://svnweb.freebsd.org/changeset/ports/321303 Log: . NOPORTEXAMPLES -> PORT_OPTIONS:MEXAMPLES; . use PORTEXAMPLES at Makefile; . trim Makefile headers. Modified: head/biology/mopac/Makefile head/biology/mopac/pkg-plist Modified: head/biology/mopac/Makefile ============================================================================== --- head/biology/mopac/Makefile Wed Jun 19 18:33:17 2013 (r321302) +++ head/biology/mopac/Makefile Wed Jun 19 18:38:46 2013 (r321303) @@ -1,9 +1,5 @@ -# New ports collection makefile for: mopac -# Date created: 1997-04-23 -# Whom: Ryo MIYAMOTO <rmiya@cc.hirosaki-u.ac.jp> -# +# Created by: Ryo MIYAMOTO <rmiya@cc.hirosaki-u.ac.jp> # $FreeBSD$ -# PORTNAME= mopac PORTVERSION= 7.${MOPAC_SUBVERSION} @@ -30,6 +26,10 @@ LDFLAGS+= -L${LOCALBASE}/lib MOPAC_SUBVERSION= 1.11 +PORTEXAMPLES= * + +OPTIONS_DEFINE= EXAMPLES + post-patch: @${REINPLACE_CMD} -e '/pkgconfig/s|$$(libdir)|$$(prefix)/libdata|g' \ ${WRKSRC}/Makefile.am @@ -37,10 +37,12 @@ post-patch: -e 's|./src/mopac7|${PREFIX}/libexec/mopac7|g' \ ${WRKSRC}/run_${PORTNAME}7 +.include <bsd.port.options.mk> + post-install: ${INSTALL_SCRIPT} ${WRKSRC}/run_${PORTNAME}7 ${PREFIX}/bin/${PORTNAME}7 ${INSTALL_PROGRAM} ${WRKSRC}/src/.libs/${PORTNAME}7 ${PREFIX}/libexec/${PORTNAME}7 -.if !defined(NOPORTEXAMPLES) +.if ${PORT_OPTIONS:MEXAMPLES} @${MKDIR} ${EXAMPLESDIR}/test ${INSTALL_DATA} ${WRKSRC}/tests/*.dat ${EXAMPLESDIR}/test .endif Modified: head/biology/mopac/pkg-plist ============================================================================== --- head/biology/mopac/pkg-plist Wed Jun 19 18:33:17 2013 (r321302) +++ head/biology/mopac/pkg-plist Wed Jun 19 18:38:46 2013 (r321303) @@ -6,18 +6,4 @@ lib/libmopac7.so lib/libmopac7.so.0 libdata/pkgconfig/libmopac7.pc libexec/mopac7 -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/1scf.dat -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/elements.dat -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/force.dat -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/geometry.dat -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/keys.dat -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/nch34+.dat -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/oldgeo.dat -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/paras.dat -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/test_cos.dat -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/test_ef_.dat -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/test_gre.dat -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/test_pol.dat -%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/test -%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% @dirrm include/mopac7
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306191838.r5JIckYY026558>