Ticket #16055: Portfile_v6

File Portfile_v6, 1.3 KB (added by mojca (Mojca Miklavec), 11 years ago)

CMake-based installation of TeXworks

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: $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6PortGroup           qt4 1.0
7PortGroup           active_variants 1.1
8
9name                texworks
10version             0.5.0-svn1294
11platforms           darwin
12categories          editors tex
13maintainers         nomaintainer
14license             GPL-2
15
16description         A simple interface for working with TeX documents
17long_description    ${description}
18
19homepage            http://code.google.com/p/texworks
20master_sites        googlecode
21
22fetch.type          svn
23svn.url             http://texworks.googlecode.com/svn/trunk
24svn.revision        1294
25
26worksrcdir          trunk
27
28post-extract {
29    file mkdir ${build.dir}
30}
31
32patchfiles          patch-destdir.diff
33
34configure.dir       ${worksrcpath}/build
35configure.args-append ${worksrcpath}
36build.dir           ${configure.dir}
37
38depends_lib         port:hunspell \
39                    port:poppler \
40                    port:libz
41
42require_active_variants poppler qt4
43require_active_variants poppler quartz
44
45post-destroot {
46    # alternatively set the DESTDIR straight to ${destroot}${applications_dir}
47    move ${destroot}${prefix}/TeXworks.app ${destroot}${applications_dir}
48}