mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
mdate: new recipe (#1876)
This commit is contained in:
committed by
fbrosson
parent
c71280740c
commit
8a74434e34
43
app-misc/mdate/mdate-1.7.0.3.recipe
Normal file
43
app-misc/mdate/mdate-1.7.0.3.recipe
Normal file
@@ -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
|
||||
}
|
||||
22
app-misc/mdate/patches/mdate-1.7.0.3.patchset
Normal file
22
app-misc/mdate/patches/mdate-1.7.0.3.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
From a13080c18f5a8ace1d0efe6b9a6a9840e4683832 Mon Sep 17 00:00:00 2001
|
||||
From: localanu <localanu@gmail.com>
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user