From 8a74434e3438d4a115b91e0eaad7be18f7ed59ea Mon Sep 17 00:00:00 2001 From: Mochammad Nur Afandi Date: Mon, 11 Dec 2017 09:15:13 +0000 Subject: [PATCH] mdate: new recipe (#1876) --- app-misc/mdate/mdate-1.7.0.3.recipe | 43 +++++++++++++++++++ app-misc/mdate/patches/mdate-1.7.0.3.patchset | 22 ++++++++++ 2 files changed, 65 insertions(+) create mode 100644 app-misc/mdate/mdate-1.7.0.3.recipe create mode 100644 app-misc/mdate/patches/mdate-1.7.0.3.patchset diff --git a/app-misc/mdate/mdate-1.7.0.3.recipe b/app-misc/mdate/mdate-1.7.0.3.recipe new file mode 100644 index 000000000..3bb816f69 --- /dev/null +++ b/app-misc/mdate/mdate-1.7.0.3.recipe @@ -0,0 +1,43 @@ +SUMMARY="A converter to Mayan dates" +DESCRIPTION="Mdate is a utility that converts Gregorian dates to Mayan Long Count dates. \ +It was originally an implementation of some algorithms published by N. Dershowitz and \ +E.M. Reingold in their book Calendrical Calculations." +HOMEPAGE="https://github.com/ewe2/mdate" +COPYRIGHT="2010-2014 Sean Dwyer" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="https://github.com/ewe2/mdate/archive/$portVersion.tar.gz" +CHECKSUM_SHA256="6d58a8cf63c25b2b4b5b8904ba7c982f18608e8fa65436c555280699a020bcf8" +PATCHES="mdate-$portVersion.patchset" + +ARCHITECTURES="x86_gcc2 x86_64" + +PROVIDES=" + mdate = $portVersion + cmd:mdate = $portVersion + " +REQUIRES=" + haiku + " + +BUILD_REQUIRES=" + haiku_devel + " +BUILD_PREREQUIRES=" + cmd:gcc + cmd:ld + cmd:make + " + +BUILD() +{ + make +} + +INSTALL() +{ + make installbin BINDIR=$binDir + install -d $docDir $manDir/man1 + install -t $docDir AUTHORS doc/mdate.html doc/mdate.pdf doc/mdate.txt + install -t $manDir/man1 doc/mdate.1 +} diff --git a/app-misc/mdate/patches/mdate-1.7.0.3.patchset b/app-misc/mdate/patches/mdate-1.7.0.3.patchset new file mode 100644 index 000000000..af4ba2e33 --- /dev/null +++ b/app-misc/mdate/patches/mdate-1.7.0.3.patchset @@ -0,0 +1,22 @@ +From a13080c18f5a8ace1d0efe6b9a6a9840e4683832 Mon Sep 17 00:00:00 2001 +From: localanu +Date: Sun, 10 Dec 2017 14:35:56 +0000 +Subject: Fix missing var in cmdline.h + + +diff --git a/cmdline.cpp b/cmdline.cpp +index af8f300..ea509ea 100644 +--- a/cmdline.cpp ++++ b/cmdline.cpp +@@ -26,6 +26,8 @@ + + #include "mdate.h" + ++#include "getopt.h" ++ + static char rcsid[] __attribute__ ((unused)) = "@(#) $Id$"; + + using namespace std; +-- +2.14.2 +