diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-11 17:01:55 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-11 17:02:25 -0400 |
commit | 4fcef8661553771ebc2680aab9c6157554f276ed (patch) | |
tree | 93e4f34b72eaa2b74f23f468388259ac53d937ab /dist | |
parent | dea2aed0b509734ec4e1cd163ac2a4f013000da2 (diff) | |
download | fork-ledger-4fcef8661553771ebc2680aab9c6157554f276ed.tar.gz fork-ledger-4fcef8661553771ebc2680aab9c6157554f276ed.tar.bz2 fork-ledger-4fcef8661553771ebc2680aab9c6157554f276ed.zip |
Updated Portfile as 'ledger-devel' for pre-3.0
Diffstat (limited to 'dist')
-rw-r--r-- | dist/Portfile | 78 |
1 files changed, 52 insertions, 26 deletions
diff --git a/dist/Portfile b/dist/Portfile index c7305e96..fc82b3d3 100644 --- a/dist/Portfile +++ b/dist/Portfile @@ -3,45 +3,48 @@ PortSystem 1.0 -name ledger -version 3.0 +name ledger-devel +version 3.0-20100611 homepage http://www.newartisans.com/software/ledger.html categories finance accounting reporting description A command-line, double-entry accounting tool. long_description Ledger is a powerful, double-entry accounting system that \ - is accessed from the UNIX command-line. + is accessed from the UNIX command-line. maintainers johnw@newartisans.com platforms darwin -use_bzip2 no -master_sites ftp://ftp.newartisans.com/pub/ledger/:source +use_bzip2 yes +master_sites http://ftp.newartisans.com/pub/ledger/:source distname ${name}-${version} distfiles ${distname}${extract.suffix}:source checksums ${distname}${extract.suffix} \ - md5 7d2ebb3fbc0ca14e34f4aada9fe764a0 \ - sha1 d00ca4d61f28793c22be892411491d5ff48f156b \ - rmd160 e6ef6e0acfa125a88927ac399ec8e37fbbe1fe66 + md5 0ab9a855719df536a85f7ea5238b8a6e \ + sha1 e2ee9e2951fd37bac50c91046f097c11294a6e8e \ + rmd160 72cdfe76add63425b1ade1d03479e837e9f2dafe depends_build port:automake \ port:autoconf \ port:libtool -depends_lib port:gmp \ +depends_lib port:gettext \ + port:gmp \ port:mpfr \ - port:boost + port:boost \ + port:libedit -configure.args --with-extra-includes=${prefix}/include \ - --with-extra-libs=${prefix}/lib +# gmp and mpfr are not universal +universal_variant no -#patchfiles patch-admin-libtool.m4.in.diff \ -# patch-ledger-ProjectFile.cpp.diff +configure.args --with-extra-includes=${prefix}/include \ + --with-extra-libs=${prefix}/lib build.args DYLD_LIBRARY_PATH=${worksrcpath}/ledger/.libs platform darwin 9 {} +platform darwin 10 {} destroot.args DESTDIR=${destroot}${prefix} \ DYLD_LIBRARY_PATH=${worksrcpath}/ledger/.libs \ @@ -49,26 +52,49 @@ destroot.args DESTDIR=${destroot}${prefix} \ post-destroot {} -variant ofx description {Allow reading of OFX data files} { - depends_lib-append port:libofx -} - variant debug description {Enable debug mode} { configure.args-append --enable-debug=yes } +variant icu description {Enable full Unicode support} { + if {[variant_isset python25]} { + depends_lib-delete port:boost+python25 + depends_lib-append port:boost+icu+python25 + } + else if {[variant_isset python26]} { + depends_lib-delete port:boost+python26 + depends_lib-append port:boost+icu+python26 + } + else { + depends_lib-delete port:boost + depends_lib-append port:boost+icu + } +} + variant python25 description {build python 2.5 support} conflicts python26 { - set pyversion 2.5 - depends_lib-delete port:boost - depends_lib-append port:boost+python25 \ - port:python[strsed ${pyversion} {g/[.]//}] + set pyversion 2.5 + if {[variant_isset icu]} { + depends_lib-delete port:boost+icu + depends_lib-append port:boost+icu+python25 + } + else { + depends_lib-delete port:boost + depends_lib-append port:boost+python25 + } + depends_lib-append port:python25 } variant python26 description {build python 2.6 support} conflicts python25 { - set pyversion 2.6 - depends_lib-delete port:boost - depends_lib-append port:boost+python26 \ - port:python[strsed ${pyversion} {g/[.]//}] + set pyversion 2.6 + if {[variant_isset icu]} { + depends_lib-delete port:boost+icu + depends_lib-append port:boost+icu+python26 + } + else { + depends_lib-delete port:boost + depends_lib-append port:boost+python26 + } + depends_lib-append port:python26 } #livecheck.check regex |