source: trunk/dports/aqua/tagainijisho/Portfile

Last change on this file was 120294, checked in by ryandesign@…, 3 years ago

tagainijisho: prevent activation error if a previous version of this port had ever been installed (#43736)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
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: Portfile 120294 2014-05-22 00:41:07Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6PortGroup           cmake 1.0
7
8github.setup        Gnurou tagainijisho 1.0.2
9license             GPL-3+
10categories          aqua education japanese
11platforms           darwin
12maintainers         strasweb.fr:rudloff openmaintainer
13
14description         A free Japanese dictionary and study assistant
15
16long_description    Tagaini Jisho is a free, open-source Japanese \
17                    dictionary and kanji lookup tool that is available \
18                    for Windows, Mac OS X and Linux and aims at \
19                    becoming your Japanese study assistant. It allows \
20                    you to quickly search for entries and mark those \
21                    that you wish to study, along with tags and \
22                    personal notes. \
23                    It also let you train entries you are studying \
24                    and follows your progression in remembering them. \
25                    Finally, it makes it easy to review entries you \
26                    did not remember by listing them on screen \
27                    or printing them on a small booklet.
28
29homepage            http://www.tagaini.net/
30github.tarball_from releases
31
32checksums           rmd160  a47a9702d71bd154aeaea06d3234d9e4ef75d8d4 \
33                    sha256  144a516a69d440014269dd2a11e10760fd9543726affd9af152b28e1e1d57c3f
34
35depends_lib         port:qt4-mac
36
37patchfiles          patch-CMakeLists.txt.diff \
38                    patch-i18n-CMakeLists.txt.diff \
39                    patch-pack-CMakeLists.txt.diff
40
41configure.pre_args  -DCMAKE_INSTALL_PREFIX=${applications_dir}
42
43pre-activate {
44    # tagainijisho before 1.0.2_0 installed this file directly, bypassing the
45    # destroot; remove it if found to prevent an activation error.
46    set filepath "${applications_dir}/Tagaini Jisho.app/Contents/Resources/qt.conf"
47    if {[file exists ${filepath}] && [registry_file_registered ${filepath}] == "0"} {
48        if {[catch {delete ${filepath}}]} {
49            return -code error "Cannot delete ${filepath}; please remove it manually"
50        }
51    }
52}
Note: See TracBrowser for help on using the repository browser.