source: trunk/dports/textproc/translate-shell/Portfile @ 137662

Last change on this file since 137662 was 137662, checked in by chunyang@…, 5 years ago

translate-shell: new port, a command-line program for Google Translate

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 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 137662 2015-06-16 18:08:02Z chunyang@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        soimort translate-shell 0.9.0.7 v
8categories          textproc
9maintainers         chunyang openmaintainer
10description         Google Translate to serve as a command-line tool
11long_description    ${name} is a command-line translator powered by \
12                    Google Translate.
13
14platforms           darwin
15license             public-domain
16
17homepage            http://www.soimort.org/translate-shell/
18
19checksums           rmd160  baf28edaa59b8501537d96175f80a327493aea2a \
20                    sha256  9bfd8a33029e9b764381e8673639628de01d9dac0a3a0934dcf24b5553d56143
21
22depends_build       port:gawk
23
24depends_run         port:gawk
25
26use_configure       no
27
28build.target        release
29build.env           PREFIX=${prefix}
30
31destroot {
32    xinstall -m 755 ${worksrcpath}/build/trans ${destroot}${prefix}/bin/
33    xinstall -m 644 ${worksrcpath}/man/trans.1 \
34        ${destroot}${prefix}/share/man/man1/
35    # install additional documents
36    set docdir ${prefix}/share/doc/${name}
37    xinstall -d ${destroot}${docdir}
38    xinstall -m 644 -W ${worksrcpath} \
39        README.md LICENSE DISCLAIMER WAIVER  CONTRIBUTING.md \
40        ${destroot}${docdir}
41}
Note: See TracBrowser for help on using the repository browser.