source: trunk/dports/tex/kde4-kile/Portfile

Last change on this file was 121098, checked in by nicos@…, 3 years ago

kde4-kile: add a variant to use Mactex binaries
add a patch to output tex file and line number (inspired from commit 22caeb6e in repository)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.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 121098 2014-06-17 13:37:59Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           kde4 1.1
6
7name                kde4-kile
8version             2.1.3
9revision            1
10categories          tex kde kde4
11platforms           darwin
12license             GPL-2+
13maintainers         nicos openmaintainer
14
15description         KDE Integrated LaTeX Environment
16long_description    Kile is a user friendly TeX/LaTeX editor for the KDE \
17                    desktop environment. KDE is available for many \
18                    architectures such as PC, PowerPC (Mac for example) and \
19                    SPARC.
20
21homepage            http://kile.sourceforge.net/
22master_sites        sourceforge:project/kile/stable/kile-${version}
23distname            kile-${version}
24
25checksums           rmd160  22105a1e9b48b62dca9c866918ddc6dda3c278e2 \
26                    sha256  a063ec4fca1ba5a063ffdcdb538967af35ade01d71fa7db6ea691ba2cf88cea2
27
28use_bzip2           yes
29
30depends_lib-append  port:kdelibs4
31
32depends_run-append  port:okular \
33                    port:kate \
34                    bin:convert:ImageMagick \
35                    bin:gs:ghostscript \
36                    bin:tex:texlive
37
38patchfiles-append   patch-kilestdtools.cpp.diff \
39                    patch-kilestdtools.rc.macports.diff \
40                    patch-runTests.sh.macports.diff
41
42post-patch {
43    if {[variant_isset mactex]} {
44        reinplace "s|@TEXPREFIX@|/bin/texbin|g" \
45            ${worksrcpath}/src/data/kilestdtools.rc ${worksrcpath}/src/test/runTests.sh
46    } else {
47        reinplace "s|@TEXPREFIX@|${prefix}/bin|g" \
48            ${worksrcpath}/src/data/kilestdtools.rc ${worksrcpath}/src/test/runTests.sh
49    }
50    reinplace "s|@APPLICATIONS_DIR@|${applications_dir}|g" \
51        ${worksrcpath}/src/data/kilestdtools.rc ${worksrcpath}/src/test/runTests.sh
52}
53
54variant mactex description "change support of kile for MacTeX TeXLive" {
55    notes-append "For the mactex variant to work, /usr/texbin must also be added to binpath in macports.conf"
56}
57
58build.asroot        yes
59
60livecheck.type      sourceforge
61livecheck.url       http://sourceforge.net/projects/kile/files/stable/
62livecheck.regex     /kile-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.