aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--astro/sscalc/Makefile15
-rw-r--r--astro/sscalc/pkg-descr2
-rw-r--r--astro/sscalc/pkg-plist6
3 files changed, 14 insertions, 9 deletions
diff --git a/astro/sscalc/Makefile b/astro/sscalc/Makefile
index 5ba3a0dc09d7..77534a08a983 100644
--- a/astro/sscalc/Makefile
+++ b/astro/sscalc/Makefile
@@ -13,7 +13,7 @@ MASTER_SITES= http://www.icehouse.net/kew/
MAINTAINER= kew@icehouse.net
COMMENT= A sunrise/sunset time calculator
-BROKEN= "Installs manpage into wrong directory"
+MAN1= sscalc.1
pre-fetch:
.if !defined(LAT)
@@ -22,10 +22,13 @@ pre-fetch:
@${ECHO_MSG} "Compiling in lat/longs"
.endif
-post-install:
- @strip ${PREFIX}/bin/sscalc
- @${MKDIR} ${PREFIX}/share/doc/sscalc
- ${INSTALL_DATA} ${WRKSRC}/cities.txt ${PREFIX}/share/doc/sscalc
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/sscalc
+do-install:
+ ${INSTALL_PROGRAM} ${WRKDIR}/${DISTNAME}/sscalc ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/sscalc.1 ${MAN1PREFIX}/man/man1
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/cities.txt ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+.endif
.include <bsd.port.mk>
diff --git a/astro/sscalc/pkg-descr b/astro/sscalc/pkg-descr
index 12d8a246e45a..ed0f88abd61c 100644
--- a/astro/sscalc/pkg-descr
+++ b/astro/sscalc/pkg-descr
@@ -7,3 +7,5 @@ http://www.srrb.noaa.gov/highlights/sunrise/gen.html
The page was written by Aaron Horiuchi, Chris Lehman and Chris
Cornwall.
+
+WWW: http://www.icehouse.net/kew/
diff --git a/astro/sscalc/pkg-plist b/astro/sscalc/pkg-plist
index 4570016fd999..c0ce4fc30527 100644
--- a/astro/sscalc/pkg-plist
+++ b/astro/sscalc/pkg-plist
@@ -1,4 +1,4 @@
bin/sscalc
-share/doc/sscalc/cities.txt
-share/doc/sscalc/README
-@dirrm share/doc/sscalc
+%%PORTDOCS%%%%DOCSDIR%%/cities.txt
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%@dirrm %%DOCSDIR%%