# -*- 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                ciment-icons
categories          kde kf5 gnome
platforms           any
version             200909

maintainers         {gmail.com:rjvbertin @RJVB} openmaintainer

installs_libs       no
supported_archs     noarch
use_bzip2           yes
homepage            https://store.kde.org/p/1002573/
license             CC-BY
master_sites        https://distribute.kde.org/khotnewstuff/iconthemes/downloads/
distname            104424-Ciment

description         Ciment for KDE
long_description    Ciment for KDE is a port of the Mac OS X icon folders "Ciment" made by Laurent Baumann. \
                    It includes icons from "Albook" by the same author. An extended Albook theme can be found here:\
                    https://www.deviantart.com/stopdreaming/art/Albook-extended-811-icons-95130402
checksums           rmd160  04f3f11e35935057d80fbfac6c56c19a2477fd78 \
                    sha256  f23e0b42891350c8019fe82817f1756f14f60194b095d9e9b1c016df3852c872

use_configure       no

build               {}
destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/icons/
    file copy ${workpath}/Ciment ${destroot}${prefix}/share/icons/
    # add install a glaring omission:
    file copy ${filespath}/128-go-down.png ${destroot}${prefix}/share/icons/Ciment/128x128/actions/go-down.png
    file copy ${filespath}/64-go-down.png ${destroot}${prefix}/share/icons/Ciment/64x64/actions/go-down.png
    file copy ${filespath}/48-go-down.png ${destroot}${prefix}/share/icons/Ciment/48x48/actions/go-down.png
    file copy ${filespath}/32-go-down.png ${destroot}${prefix}/share/icons/Ciment/32x32/actions/go-down.png
    file copy ${filespath}/22-go-down.png ${destroot}${prefix}/share/icons/Ciment/22x22/actions/go-down.png
    file copy ${filespath}/16-go-down.png ${destroot}${prefix}/share/icons/Ciment/16x16/actions/go-down.png
    # other potential additions from Albook-extended:
    # aiff.ico -> audio-x-aiff.png
    # audion.png -> audio-volume-muted.png
    # Burn.ico -> actions/tools-media-optical-burn-image.png
    # Generic audio file.ico -> mimetypes/audio-x-generic.png
    # Hint.ico -> categories/system-help.png, actions/help-hint.png
    # iso,java,jar.ico -> /mimetypes/application-x-iso,java,jar.png
    # html.ico -> /mimetypes/text-html.png
    # jpeg.ico -> /mimetypes/text-jpeg.png
    # mail.ico ->apps/internet-mail.png
    # mp3,4.ico -> mimetypes/audio-mp3,4.png
    # ogg.ico -> mimetypes/application-ogg.png
}

variant OSXdg description {merge with the icons from port:OSXdg-icons} {
    depends_run-append \
                    port:OSXdg-icons
    post-destroot {
        reinplace "s|Inherits=oxygen|Inherits=osx|g" ${destroot}${prefix}/share/icons/Ciment/index.theme
    }
}

livecheck.type      none