1 | # -*- 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 |
---|
2 | # $Id: Portfile 112925 2013-11-04 05:27:57Z ryandesign@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup qt4 1.0 |
---|
6 | |
---|
7 | name LyX |
---|
8 | conflicts LyX1 |
---|
9 | version 2.0.6 |
---|
10 | set branch [join [lrange [split ${version} .] 0 1] .] |
---|
11 | categories aqua |
---|
12 | license GPL-2+ |
---|
13 | maintainers nomaintainer |
---|
14 | description WYSIWYM document processor |
---|
15 | homepage http://www.lyx.org/ |
---|
16 | long_description LyX is an advanced open source document processor \ |
---|
17 | that encourages an approach to writing based on \ |
---|
18 | the structure of your documents, not their \ |
---|
19 | appearance. LyX lets you concentrate on writing, \ |
---|
20 | leaving details of visual layout to the software. |
---|
21 | |
---|
22 | platforms darwin |
---|
23 | depends_lib-append bin:tex:texlive-basic \ |
---|
24 | port:ImageMagick \ |
---|
25 | port:boost |
---|
26 | |
---|
27 | use_xz yes |
---|
28 | distname lyx-${version} |
---|
29 | |
---|
30 | master_sites http://lyx.cybermirror.org/stable/${branch}.x/ \ |
---|
31 | http://sunsite.icm.edu.pl/pub/unix/editors/lyx/stable/${branch}.x/ \ |
---|
32 | ftp://ftp.ntua.gr/pub/X11/LyX/stable/${branch}.x/ \ |
---|
33 | ftp://ftp.lyx.org/pub/lyx/stable/${branch}.x/ \ |
---|
34 | http://gd.tuwien.ac.at/publishing/tex/lyx/stable/${branch}.x/ |
---|
35 | |
---|
36 | checksums rmd160 8e0e3af80726f566fdd8498f7410c36cffa6bdda \ |
---|
37 | sha256 a5cb2bedee6e154b50881acd2316cf9d79162d6754e3aa159a6d579f5a828ad2 |
---|
38 | |
---|
39 | patchfiles patch-configure.diff \ |
---|
40 | patch-libc++_compliance.diff |
---|
41 | |
---|
42 | configure.pre_args --prefix=${applications_dir}/LyX.app |
---|
43 | configure.args --with-frontend=qt4 --without-x --with-included-gettext --without-included-boost \ |
---|
44 | --enable-optimization=-Os --disable-concept-checks \ |
---|
45 | --with-version-suffix=-${branch} |
---|
46 | |
---|
47 | variant python25 conflicts python26 python27 description {Use python25} { |
---|
48 | depends_build-append port:python25 |
---|
49 | configure.python ${prefix}/bin/python2.5 |
---|
50 | } |
---|
51 | |
---|
52 | variant python26 conflicts python25 python27 description {Use python26} { |
---|
53 | depends_build-append port:python26 |
---|
54 | configure.python ${prefix}/bin/python2.6 |
---|
55 | } |
---|
56 | |
---|
57 | variant python27 conflicts python25 python26 description {Use python27} { |
---|
58 | depends_build-append port:python27 |
---|
59 | configure.python ${prefix}/bin/python2.7 |
---|
60 | } |
---|
61 | |
---|
62 | if {![variant_isset python25] && ![variant_isset python26] && ![variant_isset python27]} { |
---|
63 | default_variants +python27 |
---|
64 | } |
---|
65 | |
---|
66 | post-configure { |
---|
67 | reinplace -E \ |
---|
68 | "s|mkdir -p \\\$\\(pkgdatadir\\)|\ |
---|
69 | mkdir -p \\\$\\(DESTDIR\\)\\\$\\(pkgdatadir\\)|" \ |
---|
70 | ${worksrcpath}/development/MacOSX/Makefile |
---|
71 | } |
---|
72 | |
---|
73 | livecheck.type regex |
---|
74 | livecheck.url ${homepage} |
---|
75 | livecheck.regex "${name} (\\d+\\.\\d+\\.\\d+(\\.\\d+)?) released" |
---|