# -*- 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

PortSystem          1.0

name                OSXdg-icons
categories          kde kf5 gnome
version             3.10

maintainers         {gmail.com:rjvbertin @RJVB} openmaintainer

installs_libs       no
supported_archs     noarch
platforms           any
license             GPL-3+

description         MBuntu-OSX icon theme for XDG/Freedesktop (Gnome or KDE)
long_description    NoobsLab's MBuntu-OSX icon theme for XDG/Freedesktop (Gnome or KDE).

# an alternative OS X icon theme, sadly containing errors:
# use_7z              yes
# homepage            http://gnome-look.org/content/show.php/?content=166136
# master_sites        http://orig09.deviantart.net/23d6/f/2014/192/5/b/
# distname            mac_os_x_by_balasakthi-d7q79zz
# checksums           rmd160  c63e60d9a0dac8aa2946c36e9c6d7a358b0b5acd \
#                     sha256  45ee2c207fa4bfa8d36fb601fef7b7ce1c8f63f52e77302c45a4d95616cee028
# extract {
#     xinstall -m 755 -d ${worksrcpath}
#     system -W ${workpath} "7z x -o${worksrcpath} ${distpath}/${distfiles}"
#     system "chmod -R 755 ${worksrcpath}"
# }

homepage            http://www.noobslab.com/2015/11/macbuntu-1510-transformation-pack-for.html
master_sites        https://launchpad.net/~noobslab/+archive/ubuntu/themes/+files
distname            mac-icons-v3_3.10~trusty~NoobsLab.com
set worksrcpath     ${workpath}/MBuntu-icons
checksums           rmd160  c8ea174d0c490582021d5c152b3a06d14076fa28 \
                    sha256  1ed70f7c01ad4577b274003f4a5412ef90d1ffcddc914c9c398f7f99ea132313

variant kde4 description {depend on the KDE4 Oxygen icon theme} {
    depends_lib-append \
                    path:share/icons/oxygen/index.theme:oxygen-icons
}
default_variants    +kde4

use_configure       no

post-patch {
    reinplace "s|Inherits=|Inherits=oxygen,|g" ${worksrcpath}/MBuntu-OSX/index.theme
}

build               {}
destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/icons/
#     file copy ${workpath}/${distname} ${destroot}${prefix}/share/icons/Mac-X-Lion-reload
    file copy ${worksrcpath}/MBuntu-OSX ${destroot}${prefix}/share/icons/osx
}

livecheck.type      none
