Skip to content

Commit

Permalink
scid: new port.
Browse files Browse the repository at this point in the history
  • Loading branch information
kencu committed Dec 12, 2018
1 parent 6070f5f commit 50aa290
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
46 changes: 46 additions & 0 deletions games/scid/Portfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# -*- 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

name scid
version 4.6.4
categories games
platforms darwin
license GPL-2
maintainers {en.sent.com:macports @Raimondi} openmaintainer
description Shane's Chess Information Database
long_description Scid is an open source application to view, edit, and \
manage collections of chess games.
homepage http://scid.sourceforge.net/
master_sites sourceforge
checksums rmd160 7245036f6be164955c8fedf0dd22b5f67f37c2da \
sha256 4fde535051786c0f8b13e6a2a20b306e7ba29e7af7394f5e510aae4f87e223e6 \
size 12248886

use_zip yes
depends_lib port:tcl port:tcllib port:zlib port:tDOM port:tk port:tklib

patchfiles patch-Makefile.conf.diff

configure.post_args BINDIR="${prefix}/bin" SHAREDIR="${prefix}/share/${name}" \
COMPILE="${configure.cxx}" LINK="${configure.cxx}"

build.args-append CC=${configure.cc} \
CXX=${configure.cxx} \
CPP=${configure.cpp}

destroot.target install_scid
destroot.target-append install_engines
destroot.target-append install_mac

post-patch {
reinplace "s|x\\.x|${version}|g" ${worksrcpath}/Info.plist
}

post-destroot {
copy ${worksrcpath}/dist/Scid.app ${destroot}${applications_dir}
}

livecheck.type regex
livecheck.url https://sourceforge.net/projects/scid/rss?path=/
livecheck.regex scid-(\[0-9.\]+)\\.zip
10 changes: 10 additions & 0 deletions games/scid/files/patch-Makefile.conf.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- Makefile.conf
+++ Makefile.conf
@@ -212,7 +212,6 @@ install_mac: all
ditto ./img dist/Scid.app/Contents/Resources/share/scid/img
ditto ./html dist/Scid.app/Contents/Resources/share/scid/html
install -m 666 Info.plist dist/Scid.app/Contents/
- perl -pi -e "s|x\.x\</string\>|$(SCID_VERSION)</string\>|" dist/Scid.app/Contents/Info.plist
cd dist/Scid.app/Contents/Resources/bin/ && ln -sf ../share/scid/sounds
cd dist/Scid.app/Contents/Resources/bin/ && ln -sf ../share/scid/html
LANG=C sed -e 's|exec .*tkscid|exec "$(SCID_APP_BIN)tkscid"|' < scid > dist/Scid.app/Contents/Resources/bin/scid

0 comments on commit 50aa290

Please sign in to comment.