svn commit: r324154 - head/astro/aa
Alexey Dokuchaev
danfe at FreeBSD.org
Fri Aug 2 08:33:10 UTC 2013
Author: danfe
Date: Fri Aug 2 08:33:09 2013
New Revision: 324154
URL: http://svnweb.freebsd.org/changeset/ports/324154
Log:
- Convert Makefile header to the new two-line form
- Remove 404'ing URL from MASTER_SITES
- Do not explicitly set EXTRACT_AFTER_ARGS, use NO_WRKSUBDIR instead
- Avoid patching makefile: pass correct values via MAKE_ARGS; this also
remove double whitespace before -Wall from the build logs (nice)
- NOPORTDOCS -> PORT_OPTIONS:MDOCS, get rid of .for loops, unmute the
installation commands, make pkg-message display consistent with package
- Reformat port description for better readability while here
Modified:
head/astro/aa/Makefile
head/astro/aa/pkg-descr
Modified: head/astro/aa/Makefile
==============================================================================
--- head/astro/aa/Makefile Fri Aug 2 08:29:23 2013 (r324153)
+++ head/astro/aa/Makefile Fri Aug 2 08:33:09 2013 (r324154)
@@ -1,26 +1,22 @@
-# New ports collection makefile for: aa
-# Date created: 11 August 2006
-# Whom: Frank W. Josellis <frank at dynamical-systems.org>
-#
+# Created by: Frank W. Josellis <frank at dynamical-systems.org>
# $FreeBSD$
-#
PORTNAME= aa
PORTVERSION= 56
PORTREVISION= 2
CATEGORIES= astro
-MASTER_SITES= http://moshier.net/ \
- http://www.mirrorservice.org/sites/www.moshier.net/
+MASTER_SITES= http://moshier.net/
MAINTAINER= frank at dynamical-systems.org
COMMENT= Self-contained ephemeris calculator
-EXTRACT_AFTER_ARGS= -d ${WRKSRC}
EXTRACT_BEFORE_ARGS= -aqo
USE_ZIP= yes
MAKEFILE= makefile
ALL_TARGET= aa
+MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -Wall"
+NO_WRKSUBDIR= yes
SUB_FILES= pkg-message
@@ -28,30 +24,31 @@ PORTDOCS= read.me readme.404 Readme.Free
PORTDATA= messier.cat orbit.cat star.cat
PLIST_FILES= bin/aa etc/aa.ini.default
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} \
's|%%PREFIX%%|${PREFIX}|g ; s|%%DATADIR%%|${DATADIR}|g' \
${WRKSRC}/kfiles.c
- @${REINPLACE_CMD} 's|CFLAGS= -O2|CFLAGS+=| ; s|CC=|CC?=|' ${WRKSRC}/makefile
do-install:
- @${INSTALL_PROGRAM} ${WRKSRC}/aa ${PREFIX}/bin
- @${INSTALL_DATA} ${WRKSRC}/aa.ini ${PREFIX}/etc/aa.ini.default
+ ${INSTALL_PROGRAM} ${WRKSRC}/aa ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/aa.ini ${PREFIX}/etc/aa.ini.default
.if !defined(NOPORTDATA)
@${MKDIR} ${DATADIR}
-.for i in ${PORTDATA}
- @${INSTALL_DATA} ${WRKSRC}/${i} ${DATADIR}
-.endfor
+ ${INSTALL_DATA} ${PORTDATA:S|^|${WRKSRC}/|} ${DATADIR}
.endif
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${CAT} ${PKGMESSAGE} > ${WRKSRC}/Readme.FreeBSD
@${MKDIR} ${DOCSDIR}
-.for i in ${PORTDOCS}
- @${INSTALL_MAN} ${WRKSRC}/${i} ${DOCSDIR}
-.endfor
+ @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
+ @${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
+ @${ECHO_MSG}
.include <bsd.port.mk>
Modified: head/astro/aa/pkg-descr
==============================================================================
--- head/astro/aa/pkg-descr Fri Aug 2 08:29:23 2013 (r324153)
+++ head/astro/aa/pkg-descr Fri Aug 2 08:33:09 2013 (r324154)
@@ -1,10 +1,10 @@
This program computes ephemerides of Sun, Moon, planets, comets, and stars
-using rigorous reduction methods from the _Astronomical Almanac_ and related
-sources. Includes PLAN404 series for positions of the planets, and a long-term
-extension of modern Lunar theory for the Moon's position. Reads ASCII file
-catalogues of stars and orbital elements. Displays all adjustments as it finds
-local azimuth and elevation, rise and set times, etc.
+using rigorous reduction methods from the Astronomical Almanac and related
+sources.
-Latest update 2008-09-21.
+It includes PLAN404 series for positions of the planets, and a long-term
+extension of modern Lunar theory for the Moon's position; reads ASCII file
+catalogues of stars and orbital elements; displays all adjustments as it
+finds local azimuth and elevation, rise and set times, etc.
WWW: http://moshier.net/aadoc.html
More information about the svn-ports-head
mailing list