Ticket #43931: Portfile

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

oxygen-gtk2 portfile, initial commit

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