Ticket #51396: Portfile

File Portfile, 1.4 KB (added by amake (Aaron Madlon-Kay), 8 years ago)
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
5
6name                epwutil
7version             1.1
8categories          textproc
9platforms           darwin
10maintainers         madlon-kay.com:aaron+macports openmaintainer
11license             public-domain
12
13description         EPWING dictionary utilities
14
15long_description    A package of utilities for creating and manipulating \
16                    EPWING-format dictionaries. Includes: bookinfo (for \
17                    managing Book entries), catdump (for converting Catalogs \
18                    files), and  squeeze (for compressing dictionaries).
19
20homepage            http://openlab.jp/edict/
21master_sites        http://openlab.jp/edict/epwutil/
22
23checksums           rmd160  7f00f92fc116c17b2364cac7a1ba9b6d10a92682 \
24                    sha256  a45c4998a7b4fc0c3c9ad5eeadc24faa3517432bec46d9980b0fe691504ae9fb
25
26use_configure       no
27
28variant universal {}
29
30patch.pre_args      -p1
31patchfiles          patch-catdump-getline.diff
32
33build.args          CC="${configure.cc} [get_canonical_archflags cc]"
34build.cmd           make -f makefile.unx
35
36pre-build {
37    foreach fileName [glob ${build.dir}/*.c] {
38        exec iconv -f euc-jp -t utf-8 $fileName > $fileName-fixed
39        file rename -force $fileName-fixed $fileName
40    }
41}
42
43destroot {
44    xinstall -W ${worksrcpath} bookinfo catdump squeeze ${destroot}${prefix}/bin/
45}