pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
ledger: fixed build
Module Name: pkgsrc-wip
Committed By: coypu <coypu%sdf.org@localhost>
Pushed By: coypu
Date: Wed Jan 20 19:50:10 2016 +0200
Changeset: 9244cb1d6e98c59fe0c76bb42dbcff386a483152
Modified Files:
ledger/Makefile
Log Message:
ledger: fixed build
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=9244cb1d6e98c59fe0c76bb42dbcff386a483152
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
ledger/Makefile | 37 ++++++++++++++++++-------------------
1 file changed, 18 insertions(+), 19 deletions(-)
diffs:
diff --git a/ledger/Makefile b/ledger/Makefile
index 71e1aff..55db10a 100644
--- a/ledger/Makefile
+++ b/ledger/Makefile
@@ -1,12 +1,11 @@
# $NetBSD$
GITHUB_PROJECT= ledger
-VERSION= 3.1
-DISTNAME= v${VERSION}
-PKGNAME= ${GITHUB_PROJECT}-${VERSION}
+VERSION= 3.1
+DISTNAME= ledger-${VERSION}
CATEGORIES= finance
MASTER_SITES= ${MASTER_SITE_GITHUB:=ledger/}
-DIST_SUBDIR= ${GITHUB_PROJECT}
+GITHUB_TAG= v${VERSION}
MAINTAINER= base%atomicules.co.uk@localhost
HOMEPAGE= http://ledger-cli.org/
@@ -15,31 +14,31 @@ LICENSE= modified-bsd
# url2pkg-marker (please do not remove this line.)
-WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${VERSION}
-USE_LANGUAGES= c++ c
-USE_TOOLS+= curl unzip
+
+USE_CMAKE= YES
+USE_LANGUAGES= c++ c
+USE_TOOLS+= curl unzip
+
+REPLACE_INTERPRETER+= python
+REPLACE.python.old= /usr/bin/env python
+REPLACE.python.new= ${PYTHONBIN}
+REPLACE_FILES.python+= contrib/getquote-uk.py acprep python/demo.py
+REPLACE_FILES.python+= test/DocTests.py test/LedgerHarness.py
+REPLACE_FILES.python+= test/convert.py test/RegressTests.py test/convert.py
+REPLACE_FILES.python+= tools/genuuid
# A list of other things you need in order to configure and build using the Ledger acprep script, that I'm not sure where to put:
# - python
-# - cmake
+# - devel/editline?
#Version 3.1 requires a separate download of UTFCPP, automate this
#With version 3.1.1 this should get bundled with the Ledger release and this target can be removed.
post-extract:
cd ${WRKSRC} && curl -L -O https://github.com/ledger/ledger/releases/download/v3.1/ledger-utfcpp.zip && unzip ledger-utfcpp.zip
-#This is a hack!
-#The supplied acprep tool works really well for configuration and building, but in order to use it I had to disable the PKGSRC configure and build stages and then call acprep for configuration and build after the patch phase.
-#See the TODO file for more details and everything less hacky I tried that didn't work.
-NO_CONFIGURE= yes
-NO_BUILD= yes
-post-patch:
- cd ${WRKSRC} && ./acprep configure --prefix ${PREFIX} -- -DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=ON -DCMAKE_INSTALL_MANDIR:PATH=${PKGMANDIR} && ./acprep make
-
-.include "../../mk/bsd.pkg.mk"
-.include "../../mk/fetch/sites.mk"
-
#These are the minimum libraries required for Ledger
+.include "../../devel/editline/buildlink3.mk"
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../devel/gmp/buildlink3.mk"
.include "../../math/mpfr/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index