Ticket #50070: Portfile-mate

File Portfile-mate, 2.4 KB (added by RJVB (René Bertin), 9 years ago)

Portfile for Mate (and Menta)

Line 
1# -*- 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
2# $Id$
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7name                mate-icons
8categories          kde kf5 gnome
9github.setup        mate-desktop mate-icon-theme v1.12.0
10version             1.12.0
11
12maintainers         gmail.com:rjvbertin openmaintainer
13
14installs_libs       no
15supported_archs     noarch
16
17description         the official icon themes from the Mate desktop
18long_description    ${description}, Mate and Menta.
19license             {LGPL-3 Creative Commons}
20checksums           rmd160  464ac2c5134baebfcc45bd03445adb8df42cd3e0 \
21                    sha256  da22c97da2d7ff5fdf819ed5f19284de287919fe7bc3e0085eeaf75e8f46cfd0
22
23# depends_build       port:intltool
24#
25# post-extract {
26#     system -W ${worksrcpath} "intltoolize"
27# }
28
29# use_autoreconf      yes
30# configure.args      --disable-dependency-tracking
31
32use_configure       no
33
34build               {}
35# do the destroot by hand instead of going through the heavy-handed configure/build/install procedure
36# that would ideally require installing a mate-common component, only to provide translations in index.theme .
37destroot {
38    xinstall -m 755 -d ${destroot}${prefix}/share/icons/
39    file copy ${worksrcpath}/mate ${destroot}${prefix}/share/icons/
40    file copy ${worksrcpath}/menta ${destroot}${prefix}/share/icons/
41    file delete ${destroot}${prefix}/share/icons/mate/Makefile.am
42    file delete ${destroot}${prefix}/share/icons/mate/scalable/Makefile.am
43    file delete ${destroot}${prefix}/share/icons/mate/scalable-up-to-32/Makefile.am
44    file copy ${filespath}/index.theme.mate ${destroot}${prefix}/share/icons/mate/index.theme
45    file copy -force ${filespath}/text-x-preview.icon.256 ${destroot}${prefix}/share/icons/mate/256x256/mimetypes/text-x-preview.icon
46    ln -s text-x-preview.icon ${destroot}${prefix}/share/icons/mate/256x256/mimetypes/gnome-fs-regular.icon
47    ln -s text-x-preview.icon ${destroot}${prefix}/share/icons/mate/256x256/mimetypes/gtk-file.icon
48    file copy -force ${filespath}/text-x-preview.icon.48 ${destroot}${prefix}/share/icons/mate/48x48/mimetypes/text-x-preview.icon
49    ln -s text-x-preview.icon ${destroot}${prefix}/share/icons/mate/48x48/mimetypes/gnome-fs-regular.icon
50    ln -s text-x-preview.icon ${destroot}${prefix}/share/icons/mate/48x48/mimetypes/gtk-file.icon
51}