mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
62 lines
2.2 KiB
Tcl
62 lines
2.2 KiB
Tcl
# -*- 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
|
|
|
|
PortSystem 1.0
|
|
PortGroup yelp 1.0
|
|
|
|
name ghex
|
|
version 3.18.3
|
|
license GPL-2+
|
|
set branch [join [lrange [split ${version} .] 0 1] .]
|
|
description GHex - a binary editor.
|
|
long_description GHex allows the user to load data from any file, \
|
|
view and edit it in either hex or ascii. A must for \
|
|
anyone playing games that use non-ascii format for saving.
|
|
maintainers {devans @dbevans} openmaintainer
|
|
categories gnome
|
|
platforms darwin
|
|
homepage https://wiki.gnome.org/Apps/Ghex
|
|
master_sites gnome:sources/${name}/${branch}/
|
|
|
|
use_xz yes
|
|
|
|
checksums rmd160 50fff8a7e3ecf146c96d69bff9a3d7a3be017412 \
|
|
sha256 c67450f86f9c09c20768f1af36c11a66faf460ea00fbba628a9089a6804808d3
|
|
|
|
depends_build port:pkgconfig \
|
|
port:intltool \
|
|
port:itstool \
|
|
port:yelp-tools \
|
|
port:gnome-common \
|
|
port:autoconf \
|
|
port:automake \
|
|
port:libtool
|
|
|
|
depends_lib port:desktop-file-utils \
|
|
port:atk \
|
|
path:lib/pkgconfig/gtk+-3.0.pc:gtk3
|
|
|
|
depends_run port:adwaita-icon-theme
|
|
|
|
# blacklist old compilers that do not support gcc diagnostic pragmas in functions
|
|
compiler.blacklist *gcc-3.* *gcc-4.* {clang < 300}
|
|
|
|
# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
|
|
|
|
post-patch {
|
|
xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
|
|
}
|
|
|
|
configure.cmd ./autogen.sh
|
|
|
|
configure.args --disable-silent-rules \
|
|
--enable-compile-warnings=minimum \
|
|
--disable-schemas-compile
|
|
|
|
post-activate {
|
|
system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
|
|
system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
|
|
system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
|
|
}
|
|
|
|
livecheck.type gnome
|