Initial import of gcal-3.01.

Gcal is a program for calculating and printing calendars.  Gcal displays
hybrid and proleptic Julian and Gregorian calendar sheets, respectively,
for one month, three months or a whole year.  It also displays eternal
holiday lists for many countries around the globe, and features a very
powerful creation of fixed date lists that can be used for reminding
purposes.  Gcal can calculate various astronomical data and times of the
Sun and the Moon for at pleasure any location, precisely enough for most
civil purposes. Gcal supports some other calendar systems, for example
the Chinese and Japanese calendar, the Hebrew calendar and the civil
Islamic calendar, too.

From maintainer Hermann Gottschalk.
This commit is contained in:
bernd 2009-10-17 08:39:34 +00:00
parent 667cc65c42
commit 173172f62e
8 changed files with 310 additions and 0 deletions

37
astro/gcal/Makefile Normal file
View File

@ -0,0 +1,37 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/10/17 08:39:34 bernd Exp $
COMMENT = calculate and print calendars
DISTNAME = gcal-3.01
CATEGORIES = astro
HOMEPAGE = http://www.gnu.org/software/gcal/gcal.html
MAINTAINER = Hermann Gottschalk <magnum@pestilenz.org>
# GPLv2+
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = ${MASTER_SITE_GNU:=gcal/}
MODULES = devel/gettext
WANTLIB = c m ncurses
CONFIGURE_STYLE = gnu dest
CONFIGURE_ARGS = --enable-easc \
--without-included-gettext
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
INTLLIBS="-L${LOCALBASE}/lib -lintl -liconv"
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gcal
${INSTALL_DATA} ${WRKBUILD}/data/gcalrc ${PREFIX}/share/examples/gcal
${INSTALL_DATA} ${WRKBUILD}/data/*.rc ${PREFIX}/share/examples/gcal
.include <bsd.port.mk>

5
astro/gcal/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (gcal-3.01.tar.gz) = 65f3394653829fd77f6862045112ad4f
RMD160 (gcal-3.01.tar.gz) = 01b54c72df3cbae242d221745343db4a9f3615cb
SHA1 (gcal-3.01.tar.gz) = 2f8dda0f759760c38beccd07fb73b18b392d6920
SHA256 (gcal-3.01.tar.gz) = e2bb8162cb5d6ce1abd27ea19e7a8f333409ac1060f8c1693416b544d4cb32d9
SIZE (gcal-3.01.tar.gz) = 2371244

View File

@ -0,0 +1,75 @@
$OpenBSD: patch-configure,v 1.1.1.1 2009/10/17 08:39:34 bernd Exp $
--- configure.orig Wed Jun 14 14:58:07 2000
+++ configure Mon Apr 2 10:04:52 2007
@@ -2632,7 +2632,7 @@ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lintl $LIBS"
+LIBS="-lintl -liconv $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2638 "configure"
#include "confdefs.h"
@@ -2666,7 +2666,7 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = ye
#define $ac_tr_lib 1
EOF
- LIBS="-lintl $LIBS"
+ LIBS="-lintl -liconv $LIBS"
else
echo "$ac_t""no" 1>&6
@@ -4334,7 +4334,7 @@ rm -f conftest*
fi
echo "$ac_t""$ac_cv_objext" 1>&6
-OBJEXT=$ac_cv_objext
+OBJEXT=".$ac_cv_objext"
ac_objext=$ac_cv_objext
# Pull the hash mark out of the macro call to avoid m4 problems.
@@ -5305,7 +5305,7 @@ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lintl $LIBS"
+LIBS="-lintl -liconv $LIBS"
cat > conftest.$ac_ext <<EOF
#line 5311 "configure"
#include "confdefs.h"
@@ -5345,7 +5345,7 @@ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lintl $LIBS"
+LIBS="-lintl -liconv $LIBS"
cat > conftest.$ac_ext <<EOF
#line 5351 "configure"
#include "confdefs.h"
@@ -6125,7 +6125,7 @@ fi
if test "$need_sys_lintl_for_regcmp" = yes; then
if test -z "`echo $LIBS | grep '\-lintl'`"; then
- LIBS="$LIBS -lintl"
+ LIBS="$LIBS -lintl -liconv"
fi
fi
@@ -6316,7 +6316,7 @@ s%@CP@%$CP%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
-s%@LN_S@%$LN_S%g
+s%@LN_S@%%g
s%@CC@%$CC%g
s%@CPP@%$CPP%g
s%@LIBM@%$LIBM%g
@@ -6332,7 +6332,7 @@ s%@GENCAT@%$GENCAT%g
s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
s%@CATALOGS@%$CATALOGS%g
s%@CATOBJEXT@%$CATOBJEXT%g
-s%@DATADIRNAME@%$DATADIRNAME%g
+s%@DATADIRNAME@%share%g
s%@GMOFILES@%$GMOFILES%g
s%@INSTOBJEXT@%$INSTOBJEXT%g
s%@INTLDEPS@%$INTLDEPS%g

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-data_Makefile_in,v 1.1.1.1 2009/10/17 08:39:34 bernd Exp $
--- data/Makefile.in.orig Wed Jun 14 00:03:09 2000
+++ data/Makefile.in Mon Apr 2 09:36:40 2007
@@ -180,12 +180,11 @@ default check installbin install-strip id ID tags TAGS
#### Start of install section. ####
-install: installdirs installdates installdata
+install: installdirs installdates
@echo "All installs in $(subdir) done"
installdirs: $(top_srcdir)/mkinstalldirs
$(NORMAL_INSTALL)
- $(SHELL) $(top_srcdir)/mkinstalldirs $(homedir)
$(SHELL) $(top_srcdir)/mkinstalldirs $(packagedatadir)
if test -n "$(AWK)" || test -n "$(PERL)"; \
then \

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-misc_Makefile_in,v 1.1.1.1 2009/10/17 08:39:34 bernd Exp $
--- misc/Makefile.in.orig Mon Apr 2 10:11:49 2007
+++ misc/Makefile.in Mon Apr 2 10:12:01 2007
@@ -252,7 +252,7 @@ installaliasdirs: $(top_srcdir)/mkinstalldirs
$(NORMAL_INSTALL)
$(SHELL) $(top_srcdir)/mkinstalldirs $(localedir)
-installalias: installalias-@USE_NLS@
+installalias:
installalias-yes: $(srcdir)/locale.alias installaliasdirs
$(NORMAL_INSTALL)
@if test ! -f "$(localedir)/locale.alias"; \

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_Makefile_in,v 1.1.1.1 2009/10/17 08:39:34 bernd Exp $
--- src/Makefile.in.orig Wed Jun 14 00:04:06 2000
+++ src/Makefile.in Mon Apr 2 09:32:46 2007
@@ -136,7 +136,7 @@ MISC_LIBS = @LIBM@ @LIBS@
LIBS = $(INTL_LIBS) $(MISC_LIBS)
CFLAGS = @CFLAGS@
-CPPFLAGS = -I$(srcdir) -I.. -I../intl -I$(top_srcdir)/intl -I$(top_builddir)/intl @CPPFLAGS@
+CPPFLAGS = -I$(srcdir) -I.. @CPPFLAGS@
LDFLAGS = @LDFLAGS@
transform = @program_transform_name@

10
astro/gcal/pkg/DESCR Normal file
View File

@ -0,0 +1,10 @@
Gcal is a program for calculating and printing calendars. Gcal displays
hybrid and proleptic Julian and Gregorian calendar sheets, respectively,
for one month, three months or a whole year. It also displays eternal
holiday lists for many countries around the globe, and features a very
powerful creation of fixed date lists that can be used for reminding
purposes. Gcal can calculate various astronomical data and times of the
Sun and the Moon for at pleasure any location, precisely enough for most
civil purposes. Gcal supports some other calendar systems, for example
the Chinese and Japanese calendar, the Hebrew calendar and the civil
Islamic calendar, too.

142
astro/gcal/pkg/PLIST Normal file
View File

@ -0,0 +1,142 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/10/17 08:39:34 bernd Exp $
@bin bin/gcal
bin/gcal-daily
bin/gcal-ddiff
bin/gcal-ddiffdrv
bin/gcal-dst
bin/gcal-gcalltx
bin/gcal-gcalltx.pl
bin/gcal-moon
bin/gcal-mrms
bin/gcal-srss
bin/gcal-wlocdrv
@bin bin/gcal2txt
@bin bin/tcal
@bin bin/txt2gcal
@info info/gcal.info
@man man/man1/gcal.1
@man man/man1/gcal2txt.1
@man man/man1/tcal.1
@man man/man1/txt2gcal.1
share/examples/gcal/
share/examples/gcal/ansipic.rc
share/examples/gcal/birthday.rc
share/examples/gcal/bkk.rc
share/examples/gcal/de-mdata.rc
share/examples/gcal/de-sdata.rc
share/examples/gcal/gcalrc
share/examples/gcal/mdata.rc
share/examples/gcal/meteoric.rc
share/examples/gcal/ms.rc
share/examples/gcal/sdata.rc
share/examples/gcal/sun-moon.rc
share/examples/gcal/textpic.rc
share/examples/gcal/wloc.rc
share/examples/gcal/wtt1.rc
share/examples/gcal/wtt2.rc
share/examples/gcal/wtt3.rc
share/gcal/
share/gcal/CREDITS.dates
share/gcal/README.dates
share/gcal/ancient
share/gcal/calendar.birth
share/gcal/calendar.chris
share/gcal/calendar.compu
share/gcal/calendar.histo
share/gcal/calendar.holid
share/gcal/calendar.judai
share/gcal/calendar.music
share/gcal/calendar.ushol
share/gcal/can_holiday
share/gcal/celtic
share/gcal/computing
share/gcal/events
share/gcal/events1
share/gcal/events2
share/gcal/events3
share/gcal/events4
share/gcal/events5
share/gcal/events6
share/gcal/gdead
share/gcal/hawaii
share/gcal/literature
share/gcal/lives
share/gcal/lives1
share/gcal/lives2
share/gcal/lives3
share/gcal/lives4
share/gcal/lives5
share/gcal/lives6
share/gcal/lotr
share/gcal/misc/
share/gcal/misc/README
share/gcal/misc/daily/
share/gcal/misc/daily/daily
share/gcal/misc/daily/daily.awk
share/gcal/misc/daily/daily.pl
share/gcal/misc/daily/daily.rc
share/gcal/misc/ddiff/
share/gcal/misc/ddiff/ddiff
share/gcal/misc/ddiff/ddiff1.awk
share/gcal/misc/ddiff/ddiff1.pl
share/gcal/misc/ddiff/ddiff2.awk
share/gcal/misc/ddiff/ddiff2.pl
share/gcal/misc/ddiff/ddiffdrv
share/gcal/misc/ddiff/ddiffdrv.awk
share/gcal/misc/ddiff/ddiffdrv.pl
share/gcal/misc/ddiff/zone.tab
share/gcal/misc/dst/
share/gcal/misc/dst/dst
share/gcal/misc/dst/dst.awk
share/gcal/misc/dst/dst.pl
share/gcal/misc/gcalltx/
share/gcal/misc/gcalltx/gcalltx
share/gcal/misc/gcalltx/gcalltx.pl
share/gcal/misc/gcalltx/gcalltx.sed
share/gcal/misc/gcalmagic.add
share/gcal/misc/moon/
share/gcal/misc/moon/moon
share/gcal/misc/mrms/
share/gcal/misc/mrms/mrms
share/gcal/misc/mrms/mrms.awk
share/gcal/misc/mrms/mrms.pl
share/gcal/misc/mrms/mrms.rc
share/gcal/misc/srss/
share/gcal/misc/srss/srss
share/gcal/misc/srss/srss.awk
share/gcal/misc/srss/srss.pl
share/gcal/misc/srss/srss.rc
share/gcal/misc/wloc/
share/gcal/misc/wloc/wlocdrv
share/gcal/misc/wloc/wlocdrv1.awk
share/gcal/misc/wloc/wlocdrv1.pl
share/gcal/misc/wloc/wlocdrv2.awk
share/gcal/misc/wloc/wlocdrv2.pl
share/gcal/misc/wloc/zone.tab
share/gcal/movies
share/gcal/music
share/gcal/radio
share/gcal/scripts/
share/gcal/scripts/cal2gcal.awk
share/gcal/scripts/cal2gcal.pl
share/gcal/scripts/ct2gcal.awk
share/gcal/scripts/ct2gcal.pl
share/gcal/scripts/old2v220.awk
share/gcal/scripts/old2v220.pl
share/gcal/scripts/v2x2v300.awk
share/gcal/scripts/v2x2v300.pl
share/gcal/sfo
share/gcal/space
share/gcal/sports
share/gcal/television
share/gcal/usa_holiday
share/gcal/usa_other
share/gcal/usa_states
share/gcal/witchcraft
share/gcal/world
share/locale/de/LC_MESSAGES/gcal.mo
share/locale/fr/LC_MESSAGES/gcal.mo
share/locale/nl/LC_MESSAGES/gcal.mo
share/locale/pl/LC_MESSAGES/gcal.mo
share/locale/ru/LC_MESSAGES/gcal.mo
share/locale/sv/LC_MESSAGES/gcal.mo