/
Portfile
40 lines (32 loc) · 1.46 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# -*- 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
PortGroup xcode 1.0
name welly-clyang
github.setup clyang welly 3.1.1.1
github.tarball_from archive
categories www aqua
maintainers {yan12125 @yan12125} openmaintainer
description A powerful BBS client for macOS users, clyang's fork
long_description ${description}
platforms darwin
license GPL-2
checksums rmd160 d65f34f56a2c8594d04ad32e8ab9646a2a2a70b3 \
sha256 bfb0f7a97b033b94cbde591d1b86be017e5421749c545ec9a2ecbc9960f7685f \
size 9981071
# window.patch: see https://stackoverflow.com/a/25991264
patchfiles pr30.patch \
window.patch \
skip-codesign.patch
post-extract {
# dummy files required by the build system
foreach f {fabric.apikey fabric.buildsecret} {
touch ${worksrcpath}/src/${f}
}
# https://github.com/uglide/RedisDesktopManager/commit/01f95381c2b0c5ec47d175f0d0905dd229286afb
reinplace -q "s|\"1050\"|\"1060\"|" {*}[glob ${worksrcpath}/src/*.lproj/*.xib]
reinplace "s|shellScript = \"FABRIC_|shellScript = \"exit 0\\\\nFABRIC_|" \
${worksrcpath}/src/Welly.xcodeproj/project.pbxproj
}
build.dir ${worksrcpath}/src
destroot.dir ${worksrcpath}/src