forked from macports/macports-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chess game. closes: https://trac.macports.org/ticket/57552
- Loading branch information
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
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
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 |
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
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 |