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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name epwutil |
---|
7 | version 1.1 |
---|
8 | categories textproc |
---|
9 | platforms darwin |
---|
10 | maintainers madlon-kay.com:aaron+macports openmaintainer |
---|
11 | license public-domain |
---|
12 | |
---|
13 | description EPWING dictionary utilities |
---|
14 | |
---|
15 | long_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 | |
---|
20 | homepage http://openlab.jp/edict/ |
---|
21 | master_sites http://openlab.jp/edict/epwutil/ |
---|
22 | |
---|
23 | checksums rmd160 7f00f92fc116c17b2364cac7a1ba9b6d10a92682 \ |
---|
24 | sha256 a45c4998a7b4fc0c3c9ad5eeadc24faa3517432bec46d9980b0fe691504ae9fb |
---|
25 | |
---|
26 | use_configure no |
---|
27 | |
---|
28 | variant universal {} |
---|
29 | |
---|
30 | patch.pre_args -p1 |
---|
31 | patchfiles patch-catdump-getline.diff |
---|
32 | |
---|
33 | build.args CC="${configure.cc} [get_canonical_archflags cc]" |
---|
34 | build.cmd make -f makefile.unx |
---|
35 | |
---|
36 | pre-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 | |
---|
43 | destroot { |
---|
44 | xinstall -W ${worksrcpath} bookinfo catdump squeeze ${destroot}${prefix}/bin/ |
---|
45 | } |
---|