mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
44 lines
1.4 KiB
Tcl
44 lines
1.4 KiB
Tcl
# -*- 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
|
|
|
|
PortSystem 1.0
|
|
PortGroup github 1.0
|
|
|
|
github.setup soimort translate-shell 0.9.7 v
|
|
# Change github.tarball_from to 'releases' or 'archive' next update
|
|
github.tarball_from tarball
|
|
categories textproc
|
|
maintainers nomaintainer
|
|
supported_archs noarch
|
|
|
|
description Google Translate to serve as a command-line tool
|
|
long_description ${name} is a command-line translator powered by \
|
|
Google Translate.
|
|
|
|
platforms any
|
|
license public-domain
|
|
|
|
homepage http://www.soimort.org/translate-shell/
|
|
|
|
checksums rmd160 5b0ca7112c1b8b56260d80dada45f0756bd531d5 \
|
|
sha256 95f1139eb880c6410aa4dd3e8329db4d9a9abb414685183789b0a75759bfbd82 \
|
|
size 94607
|
|
|
|
depends_lib port:gawk
|
|
|
|
use_configure no
|
|
|
|
build.target release
|
|
build.env PREFIX=${prefix}
|
|
|
|
destroot {
|
|
xinstall -m 755 ${worksrcpath}/build/trans ${destroot}${prefix}/bin/
|
|
xinstall -m 644 ${worksrcpath}/man/trans.1 \
|
|
${destroot}${prefix}/share/man/man1/
|
|
# install additional documents
|
|
set docdir ${prefix}/share/doc/${name}
|
|
xinstall -d ${destroot}${docdir}
|
|
xinstall -m 644 -W ${worksrcpath} \
|
|
README.md LICENSE WAIVER CONTRIBUTING.md \
|
|
${destroot}${docdir}
|
|
}
|