[109554] users/mojca/wxports/math
mojca at macports.org
mojca at macports.org
Sat Aug 17 07:54:24 PDT 2013
Revision: 109554
https://trac.macports.org/changeset/109554
Author: mojca at macports.org
Date: 2013-08-17 07:54:23 -0700 (Sat, 17 Aug 2013)
Log Message:
-----------
mojca/fityk: testing version of the update to 1.2.1
Modified Paths:
--------------
users/mojca/wxports/math/fityk/Portfile
Added Paths:
-----------
users/mojca/wxports/math/fityk/
Modified: users/mojca/wxports/math/fityk/Portfile
===================================================================
--- trunk/dports/math/fityk/Portfile 2013-08-17 14:50:27 UTC (rev 109551)
+++ users/mojca/wxports/math/fityk/Portfile 2013-08-17 14:54:23 UTC (rev 109554)
@@ -1,37 +1,69 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
-PortSystem 1.0
+PortSystem 1.0
+PortGroup github 1.0
+PortGroup wxwidgets 1.0
-name fityk
-version 0.8.6
-categories math
-platforms darwin
-maintainers nomaintainer
-supported_archs i386 ppc
+# the released version has the extra compgation that it needs to fetch cmpfit-1.2.tar.gz on the fly
+# github.setup wojdyr fityk 1.2.1 v
+github.setup wojdyr fityk e63acef802
+name fityk
+version 1.2.1
+categories math
+platforms darwin
+license GPL-2
+maintainers nomaintainer
-description fityk is for peak fitting.
+description fityk is for peak fitting.
-long_description fityk is a program for nonlinear fitting of analytical \
- functions (especially peak-shaped) to data (usually \
- experimental data). There are also people using it to \
- remove the baseline from data, or to display data only.
+long_description fityk is a program for nonlinear fitting of analytical \
+ functions (especially peak-shaped) to data (usually \
+ experimental data). There are also people using it to \
+ remove the baseline from data, or to display data only.
-homepage http://www.unipress.waw.pl/fityk
-master_sites sourceforge
+homepage http://fityk.nieto.pl/
-use_bzip2 yes
+# additional master site
+# master_sites http://www.physics.wisc.edu/~craigm/idl/down:cmpfit
+# distfiles-append cmpfit-1.2.tar.gz:cmpfit
-checksums sha1 9d1063e015aa214c3cc37da15b87a63978733ca2
+checksums rmd160 12cbcd703c62439f2d0e95b5394277654249722b \
+ sha256 2abb978b7f1ee8f800bf4f34a529163460234c873e423cf12fea2bb9260f1c45
-depends_lib port:boost \
- port:readline \
- port:gnuplot \
- port:ncurses \
- port:wxWidgets \
- port:python26
+wxWidgets.use wxWidgets-3.0
-configure.args --mandir=${prefix}/share/man
-configure.cppflags -I${prefix}/include
-configure.env DYLD_LIBRARY_PATH=${prefix}/lib \
- LD_LIBRARY_PATH=${prefix}/lib
+# WARNING: dvipng command 'dvipng' cannot be run (needed for math display), check the pngmath_dvipng setting
+depends_build port:swig-lua
+
+depends_lib port:boost \
+ port:readline \
+ port:gnuplot \
+ port:ncurses \
+ port:xylib \
+ port:lua \
+ port:zlib \
+ port:python27 \
+ port:wxWidgets30
+
+# TODO: gnuplot is probably a runtime dependency
+
+pre-configure {
+ # TODO: dependency on autotools
+ system "cd ${worksrcpath} && autoreconf --install --verbose"
+}
+
+pre-build {
+ if {[variant_isset docs]} {
+ depends_build-append port:py27-sphinx
+ # TODO: use a python variable
+ reinplace "s|sphinx-build|${prefix}/Library/Frameworks/Python.framework/Versions/2.7/bin/sphinx-build|" ${worksrcpath}/doc/Makefile
+ system "cd doc && make && cd .."
+ } else {
+ system "mkdir -p ${worksrcpath}/doc/html/placeholder"
+ }
+}
+
+configure.args-append --with-wxdir=${wxWidgets.wxdir}
+
+variant docs description {Build and install documentation} {}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130817/663917a9/attachment.html>
More information about the macports-changes
mailing list