source: trunk/dports/gnome/alacarte/Portfile @ 113247

Last change on this file since 113247 was 113247, checked in by devans@…, 6 years ago

alacarte: merge version 3.10.0 from GNOME-3 test branch.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 113247 2013-11-13 07:27:58Z devans@macports.org $
3
4PortSystem      1.0
5
6name            alacarte
7version         3.10.0
8epoch           1
9license         GPL-2+
10set branch      [join [lrange [split ${version} .] 0 1] .]
11description     A simple freedesktop.org compliant menu editor for use with GNOME
12
13long_description \
14                ${description}
15
16maintainers     devans openmaintainer
17categories      gnome
18platforms       darwin
19homepage        http://www.gnome.org/
20master_sites    gnome:sources/${name}/${branch}/
21
22use_xz          yes
23
24checksums       rmd160  2ad11884d64d337d36cf222e29e1fe7781ea660b \
25                sha256  bdc91981859a5076ae38a213892074e1263629835702920d47f6ee2bb76179f1
26
27supported_archs noarch
28
29depends_build   port:pkgconfig \
30                port:intltool
31
32depends_lib     port:desktop-file-utils \
33                port:gtk3 \
34                port:gnome-menus
35
36depends_run     port:gnome-settings-daemon \
37                port:yelp
38
39patchfiles      patch-Makefile.in.diff \
40                patch-configure.diff \
41                patch-Alacarte-MenuEditor.py.diff
42
43post-destroot {
44    move ${destroot}${prefix}/bin/alacarte.py ${destroot}${prefix}/bin/alacarte
45}
46
47# python3 is not supported
48
49variant python26 description {Use python 2.6} {
50    depends_lib-append          port:py26-gobject3
51    configure.python            ${prefix}/bin/python2.6
52    set python_prefix           ${frameworks_dir}/Python.framework/Versions/2.6
53    configure.pkg_config_path   ${python_prefix}/lib/pkgconfig
54}
55
56variant python27 description {Use python 2.7} {
57    depends_lib-append          port:py27-gobject3
58    configure.python            ${prefix}/bin/python2.7
59    set python_prefix           ${frameworks_dir}/Python.framework/Versions/2.7
60    configure.pkg_config_path   ${python_prefix}/lib/pkgconfig
61}
62
63if {![variant_isset python26]} {
64    default_variants +python27
65}
66
67notes "
68    Be sure to set the following environment variables:
69
70        export XDG_DATA_DIRS=${prefix}/share
71        export XDG_CONFIG_DIRS=${prefix}/etc/xdg
72        export XDG_MENU_PREFIX=gnome-
73
74    Alacarte needs them to find installed applications and menus to edit.
75"
76
77post-activate {
78    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
79    system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
80}
81
82livecheck.type  gnome
Note: See TracBrowser for help on using the repository browser.