1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

- Add p5-DateTime-Astro 0.99999_03

DateTime::Astro implements functions used in astronomical calendars:
- Solar Longitude
- Solar Terms
- Lunar Longitude
- New Moons
... etc

This module is best used in environments where a C compiler and the MPFR
arbitrary precision math library is installed. It can fallback to using
Math::BigInt, but that would pretty much render it useless because of its speed
and loss of accuracy that may creep up while doing Perl to C struct conversions.

WWW: http://search.cpan.org/dist/DateTime-Astro/

Feature safe:	yes
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2011-11-30 17:24:33 +00:00
parent 4b7c37750e
commit fa8642ee90
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=286680
5 changed files with 71 additions and 0 deletions

View File

@ -1528,6 +1528,7 @@
SUBDIR += p5-Date-Simple
SUBDIR += p5-DateConvert
SUBDIR += p5-DateTime
SUBDIR += p5-DateTime-Astro
SUBDIR += p5-DateTime-Calendar-Chinese
SUBDIR += p5-DateTime-Calendar-Christian
SUBDIR += p5-DateTime-Calendar-Discordian

View File

@ -0,0 +1,44 @@
# New ports collection makefile for: p5-DateTime-Astro
# Date created: 2011-11-29
# Whom: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= DateTime-Astro
PORTVERSION= 0.99.999
CATEGORIES= devel perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= CPAN:DMAKI
PKGNAMEPREFIX= p5-
DISTNAME= ${PORTNAME}-${PORTVERSION:R}${PORTVERSION:E}_03
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Functions For Astromical Calendars
BUILD_DEPENDS= p5-DateTime>=0:${PORTSDIR}/devel/p5-DateTime \
p5-DateTime-Set>=0:${PORTSDIR}/devel/p5-DateTime-Set
LIB_DEPENDS= mpfr:${PORTSDIR}/math/mpfr
RUN_DEPENDS= p5-DateTime>=0:${PORTSDIR}/devel/p5-DateTime \
p5-DateTime-Set>=0:${PORTSDIR}/devel/p5-DateTime-Set
PERL_CONFIGURE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}${PORTVERSION:E}
MAN3= DateTime::Astro.3 \
DateTime::Event::SolarTerm.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501001
BUILD_DEPENDS+= p5-Devel-PPPort>=3.19:${PORTSDIR}/devel/p5-Devel-PPPort
.endif
.if ${PERL_LEVEL} < 501200
BUILD_DEPENDS+= p5-ExtUtils-ParseXS>=2.21:${PORTSDIR}/devel/p5-ExtUtils-ParseXS
.endif
post-configure:
@${REINPLACE_CMD} -e '/^INC = / s|$$| -I${LOCALBASE}/include|' ${WRKSRC}/Makefile
.include <bsd.port.post.mk>

View File

@ -0,0 +1,2 @@
SHA256 (DateTime-Astro-0.99999_03.tar.gz) = 7a1ad554bf2e4b107414c72e53561f046261602292fe11ba107e73d82cdf3700
SIZE (DateTime-Astro-0.99999_03.tar.gz) = 95982

View File

@ -0,0 +1,13 @@
DateTime::Astro implements functions used in astronomical calendars:
- Solar Longitude
- Solar Terms
- Lunar Longitude
- New Moons
... etc
This module is best used in environments where a C compiler and the MPFR
arbitrary precision math library is installed. It can fallback to using
Math::BigInt, but that would pretty much render it useless because of its speed
and loss of accuracy that may creep up while doing Perl to C struct conversions.
WWW: http://search.cpan.org/dist/DateTime-Astro/

View File

@ -0,0 +1,11 @@
%%SITE_PERL%%/%%PERL_ARCH%%/DateTime/Astro.pm
%%SITE_PERL%%/%%PERL_ARCH%%/DateTime/AstroPP.pm
%%SITE_PERL%%/%%PERL_ARCH%%/DateTime/AstroXS.pm
%%SITE_PERL%%/%%PERL_ARCH%%/DateTime/Event/SolarTerm.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/DateTime/Astro/.packlist
%%SITE_PERL%%/%%PERL_ARCH%%/auto/DateTime/Astro/Astro.bs
%%SITE_PERL%%/%%PERL_ARCH%%/auto/DateTime/Astro/Astro.so
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/DateTime/Astro
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/DateTime
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/DateTime/Event
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/DateTime