Ticket #43931: Portfile.2

File Portfile.2, 3.5 KB (added by RJVB (René Bertin), 10 years ago)

corrected version

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile Thu Jun  5 12:10:38 UTC 2014 rjvbertin@gmail.com $
3# kde/libkgapi/Portfile
4
5PortSystem          1.0
6PortGroup           cmake 1.0
7PortGroup           muniversal 1.0
8
9name                oxygen-gtk2
10version             1.4.5
11
12categories          x11 gtk
13
14description         Oxygen-Gtk is a port of the default KDE widget theme (Oxygen), to gtk.
15
16long_description    Its primary goal is to ensure visual consistency between gtk and qt-based \
17                    applications running under kde. A secondary objective is to also have a \
18                    stand-alone nice looking gtk theme that would behave well on other Desktop \
19                    Environments. \
20                    Unlike other attempts made to port the kde oxygen theme to gtk, this attempt \
21                    does not depend on Qt (via some Qt to Gtk conversion engine), nor does render \
22                    the widget appearance via hard coded pixmaps, which otherwise breaks everytime \
23                    some setting is changed in kde.
24
25platforms           darwin
26license             LGPL-2+
27maintainers         gmail.com:rjvbertin
28
29universal_variant   no
30
31homepage            http://kde-look.org/content/show.php/Oxygen+Gtk?content=136216
32master_sites        kde:stable/${name}/${version}/src/ \
33                    ftp://ftp.kde.org/pub/kde/stable/${name}/${version}/src
34
35livecheck.type      regex
36livecheck.url       http://kde-look.org/content/show.php/Oxygen+Gtk?content=136216
37livecheck.regex     "Oxygen Gtk.*(1\\.\\d+?(\\.\\d+))"
38
39use_bzip2           yes
40
41checksums           rmd160  51360c2b16887b22d093e29fea3456210d92e335 \
42                    sha256  5b6c826a9741c244dc41ff5412657b82f1f4f622e8cfc3f99e6d2aa714c1d303
43
44depends_build-append    port:pkgconfig
45depends_lib-append  port:xorg-libX11 \
46                    path:lib/pkgconfig/cairo.pc:cairo \
47                    port:gtk2 \
48                    port:dbus
49
50post-configure {
51    # Default libraries extension is ".dylib" on Darwin, not ".so", but gtk-engines must have a .so extension
52    # NB: replacing the extension post-destroot seems to work too, but this seems cleaner to me even if more complicated.
53    if {[variant_isset universal]} {
54        reinplace {s/liboxygen-gtk\.dylib/liboxygen-gtk\.so/} ${workpath}/${name}-${version}-x86_64/src/CMakeFiles/oxygen-gtk.dir/build.make \
55            ${workpath}/${name}-${version}-x86_64/src/CMakeFiles/oxygen-gtk.dir/cmake_clean.cmake \
56            ${workpath}/${name}-${version}-x86_64/src/CMakeFiles/oxygen-gtk.dir/link.txt \
57            ${workpath}/${name}-${version}-x86_64/src/cmake_install.cmake
58        reinplace {s/liboxygen-gtk\.dylib/liboxygen-gtk\.so/} ${workpath}/${name}-${version}-i386/src/CMakeFiles/oxygen-gtk.dir/build.make \
59            ${workpath}/${name}-${version}-i386/src/CMakeFiles/oxygen-gtk.dir/cmake_clean.cmake \
60            ${workpath}/${name}-${version}-i386/src/CMakeFiles/oxygen-gtk.dir/link.txt \
61            ${workpath}/${name}-${version}-i386/src/cmake_install.cmake
62    } else {
63        reinplace {s/liboxygen-gtk\.dylib/liboxygen-gtk\.so/} ${workpath}/${name}-${version}/src/CMakeFiles/oxygen-gtk.dir/build.make \
64            ${workpath}/${name}-${version}/src/CMakeFiles/oxygen-gtk.dir/cmake_clean.cmake \
65            ${workpath}/${name}-${version}/src/CMakeFiles/oxygen-gtk.dir/link.txt \
66            ${workpath}/${name}-${version}/src/cmake_install.cmake
67    }
68}