source: trunk/dports/aqua/LyX/Portfile

Last change on this file was 154060, checked in by khindenburg@…, 11 months ago

LyX: update to 2.2.2

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 KB
Line 
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 154060 2016-10-19 13:44:48Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           qt4 1.0
6
7name                LyX
8conflicts           LyX1
9version             2.2.2
10set branch          [join [lrange [split ${version} .] 0 1] .]
11categories          aqua
12license             GPL-2+
13maintainers         khindenburg openmaintainer
14description         WYSIWYM document processor
15homepage            http://www.lyx.org/
16long_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
22platforms           darwin
23
24depends_build-append    port:bison port:gawk port:cctools \
25                        port:aspell port:hunspell
26depends_lib-append      port:enchant \
27                        bin:latex:texlive \
28                        port:ImageMagick \
29                        port:boost \
30                        port:hunspell \
31                        port:libmagic
32
33use_xz              yes
34distname            lyx-${version}
35
36master_sites        http://lyx.cybermirror.org/stable/${branch}.x/ \
37                    http://sunsite.icm.edu.pl/pub/unix/editors/lyx/stable/${branch}.x/ \
38                    ftp://ftp.ntua.gr/pub/X11/LyX/stable/${branch}.x/ \
39                    ftp://ftp.lyx.org/pub/lyx/stable/${branch}.x/ \
40                    http://gd.tuwien.ac.at/publishing/tex/lyx/stable/${branch}.x/
41
42checksums           rmd160  c3e4d309038aebb8225b62e7cf1e6cf04258f5ff \
43                    sha256  a85c3d7412c4069f8a1f5af4eb172948ae9a50394602f6318ab5c8e990aa5568
44
45configure.pre_args  --prefix=${applications_dir}/LyX.app
46# With 2.2.x, Qt 5.6.x is supported
47configure.args      --with-frontend=qt4 --without-x --with-included-gettext --without-included-boost \
48                    --enable-optimization=-Os --disable-concept-checks \
49                    --with-version-suffix=-${branch}
50
51# To be removed after Feb 2017
52variant python26 requires python27 description {Legacy compatibility variant} {}
53
54variant python27 description {Use python27} {
55    depends_build-append    port:python27
56    configure.python        ${prefix}/bin/python2.7
57}
58
59default_variants +python27
60
61variant debug description {Build with debugging information} {
62    configure.args-append   --enable-debug
63}
64
65post-configure {
66    reinplace \
67        "s|\$(MKDIR_P) \$(pkgdatadir)|\
68           \$(MKDIR_P) \$(DESTDIR)\$(pkgdatadir)|" \
69        ${worksrcpath}/development/MacOSX/Makefile
70}
71
72post-destroot {
73    file delete  -force ${destroot}${applications_dir}/LyX.app/Contents/Library/Spotlight
74}
75
76notes "
77With the upgrade to 2.2+, there are a number of important changes.
78Read ${applications_dir}/${name}.app/Contents/Resources/RELEASE-NOTES
79for more information.
80It is advisible to not delete the previous version so that it can be
81re-activated if there are issues with the new version.
82https://guide.macports.org/#using.port.upgrade
83"
84
85livecheck.type      regex
86livecheck.url       ${homepage}
87livecheck.regex     "${name} (\\d+\\.\\d+\\.\\d+(\\.\\d+)?) released"
Note: See TracBrowser for help on using the repository browser.