summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorpho <pho@pkgsrc.org>2019-12-31 18:06:15 +0000
committerpho <pho@pkgsrc.org>2019-12-31 18:06:15 +0000
commit9f80d43144427be211ad14defa0647158d255cf6 (patch)
tree2e6ce8f7d6f4720283825292723a53817cdc4174 /time
parent630afa5ab0ee14a47c7ecc47341064f1fee20237 (diff)
downloadpkgsrc-9f80d43144427be211ad14defa0647158d255cf6.tar.gz
Import time-compat-1.9.2.2
This packages tries to compat as much of time features as possible.
Diffstat (limited to 'time')
-rw-r--r--time/hs-time-compat/DESCR1
-rw-r--r--time/hs-time-compat/Makefile19
-rw-r--r--time/hs-time-compat/buildlink3.mk17
-rw-r--r--time/hs-time-compat/distinfo6
-rw-r--r--time/hs-time-compat/files/Setup.hs2
5 files changed, 45 insertions, 0 deletions
diff --git a/time/hs-time-compat/DESCR b/time/hs-time-compat/DESCR
new file mode 100644
index 00000000000..01d48d1d54a
--- /dev/null
+++ b/time/hs-time-compat/DESCR
@@ -0,0 +1 @@
+This packages tries to compat as much of time features as possible.
diff --git a/time/hs-time-compat/Makefile b/time/hs-time-compat/Makefile
new file mode 100644
index 00000000000..5ee8aa6d795
--- /dev/null
+++ b/time/hs-time-compat/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2019/12/31 18:06:15 pho Exp $
+
+DISTNAME= time-compat-1.9.2.2
+CATEGORIES= time
+
+MAINTAINER= pho@cielonegro.org
+COMMENT= Compatibility package for time
+LICENSE= modified-bsd
+
+# Setup.hs is missing from the package.
+post-patch:
+ ${CP} -f ${FILESDIR}/Setup.hs ${WRKSRC}/Setup.hs
+
+.include "../../mk/haskell.mk"
+.include "../../devel/hs-base-orphans/buildlink3.mk"
+.include "../../devel/hs-fail/buildlink3.mk"
+.include "../../devel/hs-old-locale/buildlink3.mk"
+.include "../../math/hs-semigroups/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/time/hs-time-compat/buildlink3.mk b/time/hs-time-compat/buildlink3.mk
new file mode 100644
index 00000000000..46f1a75e9e9
--- /dev/null
+++ b/time/hs-time-compat/buildlink3.mk
@@ -0,0 +1,17 @@
+# $NetBSD: buildlink3.mk,v 1.1 2019/12/31 18:06:15 pho Exp $
+
+BUILDLINK_TREE+= hs-time-compat
+
+.if !defined(HS_TIME_COMPAT_BUILDLINK3_MK)
+HS_TIME_COMPAT_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.hs-time-compat+= hs-time-compat>=1.9.2.2
+BUILDLINK_PKGSRCDIR.hs-time-compat?= ../../time/hs-time-compat
+
+.include "../../devel/hs-base-orphans/buildlink3.mk"
+.include "../../devel/hs-fail/buildlink3.mk"
+.include "../../devel/hs-old-locale/buildlink3.mk"
+.include "../../math/hs-semigroups/buildlink3.mk"
+.endif # HS_TIME_COMPAT_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -hs-time-compat
diff --git a/time/hs-time-compat/distinfo b/time/hs-time-compat/distinfo
new file mode 100644
index 00000000000..32a266f06a5
--- /dev/null
+++ b/time/hs-time-compat/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2019/12/31 18:06:15 pho Exp $
+
+SHA1 (time-compat-1.9.2.2.tar.gz) = eef4651e2ded276321a8f7cae7b5b1766d772b2f
+RMD160 (time-compat-1.9.2.2.tar.gz) = 8999a63b4c62ba9c3adf4f1f2998b2348e22ad71
+SHA512 (time-compat-1.9.2.2.tar.gz) = 210e1d6b6b1dcf30337c72d45dd5f229dfbd023a1612f13dccad23131f16437b2b6a43a46e5e1341751c7b6f88f8ef1a9b5efe91b1328b12ff20552e2a952f44
+Size (time-compat-1.9.2.2.tar.gz) = 49652 bytes
diff --git a/time/hs-time-compat/files/Setup.hs b/time/hs-time-compat/files/Setup.hs
new file mode 100644
index 00000000000..9a994af677b
--- /dev/null
+++ b/time/hs-time-compat/files/Setup.hs
@@ -0,0 +1,2 @@
+import Distribution.Simple
+main = defaultMain