Last active
August 29, 2015 14:12
-
-
Save su-v/378eaa68e30eb9db1076 to your computer and use it in GitHub Desktop.
MacPorts Portfile for EggBot Inkscape extensions v2.5.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 | |
# $Id$ | |
PortSystem 1.0 | |
PortGroup active_variants 1.1 | |
PortGroup debug 1.0 | |
PortGroup github 1.0 | |
github.setup evil-mad EggBot 2.5.0 v | |
github.tarball_from releases | |
set real_name ${name} | |
name inkscape-eggbot | |
categories graphics | |
platforms darwin | |
license GPL-3 | |
maintainers users.sf.net:suv-sf openmaintainer | |
description Software for the Original EggBot Kit | |
long_description ${description} | |
homepage http://wiki.evilmadscientist.com/eggbot | |
distname ${real_name}_extensions_${github.tag_prefix}${version} | |
dist_subdir ${name} | |
use_zip yes | |
set shortversion [join [lrange [split ${version} .] 0 1] .] | |
distfiles ${real_name}_extensions_${github.tag_prefix}${shortversion}${extract.suffix} | |
checksums ${real_name}_extensions_${github.tag_prefix}${shortversion}.zip \ | |
rmd160 9a36e882c05bf85a43275440c9dace99872adafb \ | |
sha256 22e311f3ac718669ed341cd2e591c4f526baa6c95942aec19dac7dfdd9b5b342 \ | |
depends_run path:bin/inkscape:inkscape | |
use_configure no | |
build {} | |
test {} | |
destroot {} | |
post-destroot { | |
xinstall -m 755 -d ${destroot}${prefix}/share/inkscape/extensions | |
eval xinstall -m 644 [glob ${worksrcpath}/extensions/*.inx] \ | |
${destroot}${prefix}/share/inkscape/extensions/ | |
eval xinstall -m 755 [glob ${worksrcpath}/extensions/*.py] \ | |
${destroot}${prefix}/share/inkscape/extensions/ | |
xinstall -m 755 -d ${destroot}${prefix}/share/inkscape/extensions/serial | |
eval xinstall -m 644 [glob ${worksrcpath}/extensions/serial/*.txt] \ | |
${destroot}${prefix}/share/inkscape/extensions/serial/ | |
eval xinstall -m 755 [glob ${worksrcpath}/extensions/serial/*.py] \ | |
${destroot}${prefix}/share/inkscape/extensions/serial/ | |
xinstall -m 755 -d ${destroot}${prefix}/share/inkscape/templates | |
eval xinstall -m 644 [glob ${worksrcpath}/templates/*.svg] \ | |
${destroot}${prefix}/share/inkscape/templates/ | |
if {[variant_isset examples]} { | |
set examples_worksrcpath ${workpath}/${real_name}Examples_${github.tag_prefix}${version} | |
xinstall -m 755 -d ${destroot}${prefix}/share/inkscape/examples/EggBot | |
eval copy [glob ${examples_worksrcpath}/*] \ | |
${destroot}${prefix}/share/inkscape/examples/EggBot | |
} | |
} | |
variant examples description {Install example files} { | |
distfiles-append ${real_name}Examples_${github.tag_prefix}${shortversion}.zip | |
checksums-append ${real_name}Examples_${github.tag_prefix}${shortversion}.zip \ | |
rmd160 b8c056144f42932870fe452fe5a7289ef50313e8 \ | |
sha256 3396212546c7e17b30d80e0d9fb5b7f8ad1053d3b262678a3d9781e41382d547 | |
} | |
# eof |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment