pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

wip/cabal2pkg: import cabal2pkg-0.1.0.1



Module Name:	pkgsrc-wip
Committed By:	PHO <pho%cielonegro.org@localhost>
Pushed By:	pho
Date:		Sun Jan 5 21:07:12 2025 +0900
Changeset:	c8069ebc80d1a1b5a1619ba5369e79a2d3061de5

Modified Files:
	Makefile
Added Files:
	cabal2pkg/COMMIT_MSG
	cabal2pkg/DESCR
	cabal2pkg/Makefile
	cabal2pkg/PLIST
	cabal2pkg/TODO
	cabal2pkg/distinfo

Log Message:
wip/cabal2pkg: import cabal2pkg-0.1.0.1

cabal2pkg is a tool to automate importing Haskell packages to pkgsrc and
updating existing Haskell packages in pkgsrc. cabal2pkg is similar
to url2pkg(8), in that it downloads a distfile, extracts it, and generates
package Makefile and other files, but it is specialised in Haskell packages and
is intended to generate mostly complete Makefile.

cabal2pkg can also update existing packages by performing 3-way merge on files.
In the update mode, cabal2pkg fetches two package metadata of the current and
the updated version, then tries to apply differences between two versions
against the current set of files.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=c8069ebc80d1a1b5a1619ba5369e79a2d3061de5

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile             |  1 +
 cabal2pkg/COMMIT_MSG | 12 ++++++++++++
 cabal2pkg/DESCR      | 10 ++++++++++
 cabal2pkg/Makefile   | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 cabal2pkg/PLIST      |  4 ++++
 cabal2pkg/TODO       |  2 ++
 cabal2pkg/distinfo   |  5 +++++
 7 files changed, 89 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index a7ea54e886..651f4b3dce 100644
--- a/Makefile
+++ b/Makefile
@@ -399,6 +399,7 @@ SUBDIR+=	c-news
 SUBDIR+=	c2go
 SUBDIR+=	c2hs
 SUBDIR+=	c2rust
+SUBDIR+=	cabal2pkg
 SUBDIR+=	cacti-plugin-aggregate
 SUBDIR+=	cacti-plugin-monitor
 SUBDIR+=	cacti-plugin-realtime
diff --git a/cabal2pkg/COMMIT_MSG b/cabal2pkg/COMMIT_MSG
new file mode 100644
index 0000000000..4d2dded50f
--- /dev/null
+++ b/cabal2pkg/COMMIT_MSG
@@ -0,0 +1,12 @@
+pkgtools/cabal2pkg: import cabal2pkg-0.1.0.1
+
+cabal2pkg is a tool to automate importing Haskell packages to pkgsrc and
+updating existing Haskell packages in pkgsrc. cabal2pkg is similar
+to url2pkg(8), in that it downloads a distfile, extracts it, and generates
+package Makefile and other files, but it is specialised in Haskell packages and
+is intended to generate mostly complete Makefile.
+
+cabal2pkg can also update existing packages by performing 3-way merge on files.
+In the update mode, cabal2pkg fetches two package metadata of the current and
+the updated version, then tries to apply differences between two versions
+against the current set of files.
diff --git a/cabal2pkg/DESCR b/cabal2pkg/DESCR
new file mode 100644
index 0000000000..bfdd948736
--- /dev/null
+++ b/cabal2pkg/DESCR
@@ -0,0 +1,10 @@
+cabal2pkg is a tool to automate importing Haskell packages to pkgsrc and
+updating existing Haskell packages in pkgsrc. cabal2pkg is similar
+to url2pkg(8), in that it downloads a distfile, extracts it, and generates
+package Makefile and other files, but it is specialised in Haskell packages and
+is intended to generate mostly complete Makefile.
+
+cabal2pkg can also update existing packages by performing 3-way merge on files.
+In the update mode, cabal2pkg fetches two package metadata of the current and
+the updated version, then tries to apply differences between two versions
+against the current set of files.
diff --git a/cabal2pkg/Makefile b/cabal2pkg/Makefile
new file mode 100644
index 0000000000..014237dee5
--- /dev/null
+++ b/cabal2pkg/Makefile
@@ -0,0 +1,55 @@
+# $NetBSD$
+
+DISTNAME=	cabal2pkg-0.1.0.1
+PKGNAME=	${DISTNAME}
+CATEGORIES=	pkgtools
+MASTER_SITES=	${MASTER_SITE_GITHUB:=depressed-pho/}
+GITHUB_TAG=	refs/tags/v${PKGVERSION_NOREV}
+WRKSRC=		${WRKDIR}/${GITHUB_PROJECT}-${PKGVERSION_NOREV}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/depressed-pho/cabal2pkg
+COMMENT=	Tool to automate importing/updating Haskell packages in pkgsrc
+LICENSE=	unlicense
+
+# cabal2pkg should not depend on shared Haskell libraries, because it needs
+# to be usable even while the tree of Haskell packages in pkgsrc is broken,
+# i.e. while we are updating the tree.
+HASKELL_ENABLE_DYNAMIC_EXECUTABLE=	no
+
+INSTALLATION_DIRS+=	${PKGMANDIR}/man8
+post-install:
+	${INSTALL_MAN} "${WRKSRC}/doc/cabal2pkg.8" "${DESTDIR}${PREFIX}/${PKGMANDIR}/man8"
+
+.include "../../textproc/hs-Diff/buildlink3.mk"
+.include "../../converters/hs-aeson/buildlink3.mk"
+.include "../../devel/hs-ansi-terminal/buildlink3.mk"
+.include "../../textproc/hs-case-insensitive/buildlink3.mk"
+.include "../../devel/hs-conduit/buildlink3.mk"
+.include "../../devel/hs-conduit-extra/buildlink3.mk"
+.include "../../textproc/hs-diff3/buildlink3.mk"
+.include "../../devel/hs-either/buildlink3.mk"
+.include "../../misc/hs-extra/buildlink3.mk"
+.include "../../devel/hs-ghc-paths/buildlink3.mk"
+.include "../../textproc/hs-haddock-library/buildlink3.mk"
+.include "../../www/hs-http-conduit/buildlink3.mk"
+.include "../../www/hs-http-media/buildlink3.mk"
+.include "../../www/hs-http-types/buildlink3.mk"
+.include "../../devel/hs-microlens-platform/buildlink3.mk"
+.include "../../devel/hs-mono-traversable/buildlink3.mk"
+.include "../../net/hs-network-uri/buildlink3.mk"
+.include "../../devel/hs-optparse-applicative/application.mk"
+.include "../../textproc/hs-prettyprinter/buildlink3.mk"
+.include "../../textproc/hs-prettyprinter-ansi-terminal/buildlink3.mk"
+.include "../../devel/hs-pretty-show/buildlink3.mk"
+.include "../../devel/hs-primitive/buildlink3.mk"
+.include "../../devel/hs-resourcet/buildlink3.mk"
+.include "../../devel/hs-safe-exceptions/buildlink3.mk"
+.include "../../devel/hs-syb/buildlink3.mk"
+.include "../../archivers/hs-tar-conduit/buildlink3.mk"
+.include "../../sysutils/hs-typed-process/buildlink3.mk"
+.include "../../devel/hs-unliftio/buildlink3.mk"
+.include "../../devel/hs-unliftio-core/buildlink3.mk"
+.include "../../devel/hs-unordered-containers/buildlink3.mk"
+.include "../../mk/haskell.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/cabal2pkg/PLIST b/cabal2pkg/PLIST
new file mode 100644
index 0000000000..42f6643bb9
--- /dev/null
+++ b/cabal2pkg/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+bin/cabal2pkg
+man/man8/cabal2pkg.8
+share/doc/${HS_PLATFORM}/${PKGNAME}/UNLICENSE
diff --git a/cabal2pkg/TODO b/cabal2pkg/TODO
new file mode 100644
index 0000000000..351cd31d0e
--- /dev/null
+++ b/cabal2pkg/TODO
@@ -0,0 +1,2 @@
+This package should be eventually imported to pkgtools/cabal2pkg but should
+stay here for a while, because it's still experimental at the moment.
diff --git a/cabal2pkg/distinfo b/cabal2pkg/distinfo
new file mode 100644
index 0000000000..5b645627a1
--- /dev/null
+++ b/cabal2pkg/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (cabal2pkg-0.1.0.1.tar.gz) = 6ee35578027a455afb14a0cb32f848db90549470f74852433a852b17e3bc77f9
+SHA512 (cabal2pkg-0.1.0.1.tar.gz) = ae2b8400be7ba2a052514d477af99e5e4c6b013f20849a39d3f365b013c00cdab876d33755df5152d38a8a7bdecc9c3a4bed3dbde39b175b08104078ed2f64a7
+Size (cabal2pkg-0.1.0.1.tar.gz) = 65615 bytes


Home | Main Index | Thread Index | Old Index