From 173172f62e308a9d779d79d688907713a4d519f0 Mon Sep 17 00:00:00 2001 From: bernd Date: Sat, 17 Oct 2009 08:39:34 +0000 Subject: [PATCH] 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. --- astro/gcal/Makefile | 37 ++++++ astro/gcal/distinfo | 5 + astro/gcal/patches/patch-configure | 75 ++++++++++++ astro/gcal/patches/patch-data_Makefile_in | 17 +++ astro/gcal/patches/patch-misc_Makefile_in | 12 ++ astro/gcal/patches/patch-src_Makefile_in | 12 ++ astro/gcal/pkg/DESCR | 10 ++ astro/gcal/pkg/PLIST | 142 ++++++++++++++++++++++ 8 files changed, 310 insertions(+) create mode 100644 astro/gcal/Makefile create mode 100644 astro/gcal/distinfo create mode 100644 astro/gcal/patches/patch-configure create mode 100644 astro/gcal/patches/patch-data_Makefile_in create mode 100644 astro/gcal/patches/patch-misc_Makefile_in create mode 100644 astro/gcal/patches/patch-src_Makefile_in create mode 100644 astro/gcal/pkg/DESCR create mode 100644 astro/gcal/pkg/PLIST diff --git a/astro/gcal/Makefile b/astro/gcal/Makefile new file mode 100644 index 00000000000..c8c28ec0a0d --- /dev/null +++ b/astro/gcal/Makefile @@ -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 + +# 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 diff --git a/astro/gcal/distinfo b/astro/gcal/distinfo new file mode 100644 index 00000000000..02aaa8b4a23 --- /dev/null +++ b/astro/gcal/distinfo @@ -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 diff --git a/astro/gcal/patches/patch-configure b/astro/gcal/patches/patch-configure new file mode 100644 index 00000000000..a645ed994e4 --- /dev/null +++ b/astro/gcal/patches/patch-configure @@ -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 <&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 <&6 + else + ac_save_LIBS="$LIBS" +-LIBS="-lintl $LIBS" ++LIBS="-lintl -liconv $LIBS" + cat > conftest.$ac_ext <