Ticket #43971: Portfile.2

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

Portfile for the oxygen-gtk theme for GTk3

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-gtk3
10version             1.3.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
29homepage            http://kde-look.org/content/show.php/Oxygen+Gtk?content=136216
30master_sites        kde:stable/${name}/${version}/src/ \
31                    ftp://ftp.kde.org/pub/kde/stable/${name}/${version}/src
32
33livecheck.type      regex
34livecheck.url       http://kde-look.org/content/show.php/Oxygen+Gtk?content=136216
35livecheck.regex     "oxygen-gtk3 - version.*(1\\.\\d+?(\\.\\d+))"
36
37use_bzip2           yes
38
39checksums           rmd160  f17636064ff83d6a9ceed3e7407f9eaa7498b22d \
40                    sha256  acd29c013923301bf2d5391a0b0fefe66f22633ee23b0515305834a8bf2e9a1f
41
42depends_build-append    port:pkgconfig
43depends_lib-append  port:xorg-libX11 \
44                    path:lib/pkgconfig/cairo.pc:cairo \
45                    port:gtk3 \
46                    port:dbus
47
48post-configure {
49    # Default libraries extension is ".dylib" on Darwin, not ".so", but gtk-engines must have a .so extension
50    # NB: replacing the extension post-destroot seems to work too, but this seems cleaner to me even if more complicated.
51    if {[variant_isset universal]} {
52        reinplace {s/liboxygen-gtk\.dylib/liboxygen-gtk\.so/} ${workpath}/${name}-${version}-x86_64/src/CMakeFiles/oxygen-gtk.dir/build.make \
53            ${workpath}/${name}-${version}-x86_64/src/CMakeFiles/oxygen-gtk.dir/cmake_clean.cmake \
54            ${workpath}/${name}-${version}-x86_64/src/CMakeFiles/oxygen-gtk.dir/link.txt \
55            ${workpath}/${name}-${version}-x86_64/src/cmake_install.cmake
56        reinplace {s/liboxygen-gtk\.dylib/liboxygen-gtk\.so/} ${workpath}/${name}-${version}-i386/src/CMakeFiles/oxygen-gtk.dir/build.make \
57            ${workpath}/${name}-${version}-i386/src/CMakeFiles/oxygen-gtk.dir/cmake_clean.cmake \
58            ${workpath}/${name}-${version}-i386/src/CMakeFiles/oxygen-gtk.dir/link.txt \
59            ${workpath}/${name}-${version}-i386/src/cmake_install.cmake
60    } else {
61        reinplace {s/liboxygen-gtk\.dylib/liboxygen-gtk\.so/} ${workpath}/${name}-${version}/src/CMakeFiles/oxygen-gtk.dir/build.make \
62            ${workpath}/${name}-${version}/src/CMakeFiles/oxygen-gtk.dir/cmake_clean.cmake \
63            ${workpath}/${name}-${version}/src/CMakeFiles/oxygen-gtk.dir/link.txt \
64            ${workpath}/${name}-${version}/src/cmake_install.cmake
65    }
66}