Skip to content

Commit

Permalink
QLColorCode: update to 4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatsh committed Jan 24, 2021
1 parent 0848f85 commit 091ba80
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 13 deletions.
54 changes: 43 additions & 11 deletions sysutils/QLColorCode/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,64 @@ PortSystem 1.0
PortGroup github 1.0
PortGroup xcode 1.0

github.setup anthonygelibert QLColorCode 2.1.0 release-
categories sysutils
github.setup anthonygelibert QLColorCode 4.1.0 release-
worksrcdir ${github.author}-${name}-749f674
categories sysutils aqua

platforms darwin
license GPL-2
license {GPL-3 MIT}
maintainers nomaintainer

description Quick Look plugin that renders source code with syntax highlighting
description Quick Look plugin that renders source code with syntax highlighting.
long_description ${description}

checksums rmd160 dfc80ca412d9b315ea373b60982d3cb321141a49 \
sha256 08030edbf9f46d50aa8c2e08626c5934dfdee0c992ffa3ac3d36473e6fe8534f \
size 44548
set lua_version e2ea3b31c94bb3e1da27c233661cb2a16699c685
set highlight_version ecf5d4aa1341908a6b191a47d67e735197dc430d

master_sites ${github.homepage}/tarball/${git.branch}:QLColorCode \
https://github.com/lua/lua/archive:lua \
https://gitlab.com/saalen/highlight/-/archive/${highlight_version}:highlight

distfiles ${name}-${git.branch}.tar.gz:QLColorCode \
${lua_version}.tar.gz:lua \
highlight-${highlight_version}.tar.gz:highlight

checksums QLColorCode-release-4.1.0.tar.gz \
rmd160 b45817626018c2cd7d5df4b4430c760e6a18e0d3 \
sha256 d6d878ddbcb5b1f7d9f1656e96e1ab0d5cce2f4208e1e7a6f5a190ff2a6f878a \
size 44683 \
e2ea3b31c94bb3e1da27c233661cb2a16699c685.tar.gz \
rmd160 972fcc46049cf60a780a4dc7bef6a273167dab78 \
sha256 a2e01036021d319fd41e16dfe12cc5fabc7db1337df8605a884ac0b424932d9b \
size 444643 \
highlight-ecf5d4aa1341908a6b191a47d67e735197dc430d.tar.gz \
rmd160 5fe1ca6acbd700138c3f20fbd6bedfcd8faa0e0d \
sha256 770ce8dd4b269963711038748e2505945bee29ed1807ef9c473846717e4500a3 \
size 1589913

depends_build port:boost

depends_lib port:highlight
destroot.violate_mtree yes
xcode.build.settings \
CODE_SIGN_IDENTITY=- \
CODE_SIGN_STYLE=Manual \
ENABLE_HARDENED_RUNTIME=NO

# remove build phase that copies to the user's home directory
patchfiles-append patch-xcode.diff
patchfiles-append patch-xcode.diff \
patch-include-path.diff

post-extract {
reinplace -W ${worksrcpath} "s,open \$PROJECT_DIR/release,," QLColorCode.xcodeproj/project.pbxproj
}

post-patch {
reinplace -W ${worksrcpath} "s/-j9/-j${build.jobs}/g" QLColorCode.xcodeproj/project.pbxproj
delete ${worksrcpath}/hl/lua ${worksrcpath}/hl/highlight
move ${worksrcpath}/../lua-${lua_version} ${worksrcpath}/hl/lua
move ${worksrcpath}/../highlight-${highlight_version} ${worksrcpath}/hl/highlight
}

destroot {
xinstall -d ${destroot}/Library/QuickLook
file copy ${worksrcpath}/build/Release/${name}.qlgenerator ${destroot}/Library/QuickLook
Expand All @@ -41,5 +75,3 @@ post-activate {
post-deactivate {
system "qlmanage -r"
}

github.livecheck.regex {([^"b]+)}
13 changes: 13 additions & 0 deletions sysutils/QLColorCode/files/patch-include-path.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git QLColorCode.xcodeproj/project.pbxproj QLColorCode.xcodeproj/project.pbxproj
index db203f5..91aadb5 100644
--- QLColorCode.xcodeproj/project.pbxproj
+++ QLColorCode.xcodeproj/project.pbxproj
@@ -178,7 +178,7 @@
/* Begin PBXLegacyTarget section */
26BAC9AB257CE89900486D28 /* highlight */ = {
isa = PBXLegacyTarget;
- buildArgumentsString = "-j9 cli LUA_LIBS=../../lua/liblua.a 'CXX_COMPILE=clang++ -Wall -O2 -std=c++11 -D_FILE_OFFSET_BITS=64 -c -I /opt/local/include -I /usr/local/include -I ./include -I ../../lua'";
+ buildArgumentsString = "-j9 cli LUA_LIBS=../../lua/liblua.a 'CXX_COMPILE=clang++ -Wall -O2 -std=c++11 -D_FILE_OFFSET_BITS=64 -c -I ../../lua -I /opt/local/include -I /usr/local/include -I ./include'";
buildConfigurationList = 26BAC9AC257CE89900486D28 /* Build configuration list for PBXLegacyTarget "highlight" */;
buildPhases = (
);
3 changes: 1 addition & 2 deletions sysutils/QLColorCode/files/patch-xcode.diff
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
--- QLColorCode.xcodeproj/project.pbxproj.orig 2015-10-19 14:46:13.000000000 -0700
+++ QLColorCode.xcodeproj/project.pbxproj 2015-10-19 14:46:17.000000000 -0700
@@ -187,8 +187,6 @@
@@ -216,8 +216,6 @@
8D57630F048677EA00EA77CD /* Resources */,
8D576311048677EA00EA77CD /* Sources */,
8D576313048677EA00EA77CD /* Frameworks */,
- 0ECBBA6F0CFCA39E00416538 /* Copy to Library */,
- 0E1280381061C3EA0078EC05 /* Reset quicklookd */,
);
Expand Down

0 comments on commit 091ba80

Please sign in to comment.