-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5104f00
commit 860e301
Showing
3 changed files
with
9,001 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,81 @@ | ||
# -*- 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 boost 1.0 | ||
PortGroup cmake 1.1 | ||
PortGroup github 1.0 | ||
|
||
boost.version 1.81 | ||
|
||
name parabolic | ||
github.setup NickvisionApps Parabolic 2024.11.0 | ||
revision 0 | ||
categories net gnome multimedia | ||
license GPL-3 | ||
maintainers nomaintainer | ||
description Download web video and audio | ||
long_description {*}${description} | ||
checksums rmd160 bcea2a9af71497c5ef9b5e474d6588587183d8a2 \ | ||
sha256 474539ce5711610ee1bbb5f5f9f976a5bc538c81dae565628d2b84c9c7fc8901 \ | ||
size 4366952 | ||
github.tarball_from archive | ||
|
||
depends_build-append \ | ||
port:blueprint-compiler \ | ||
port:gettext \ | ||
port:itstool \ | ||
path:bin/pkg-config:pkgconfig \ | ||
port:yelp-tools | ||
|
||
depends_lib-append port:desktop-file-utils \ | ||
port:gettext-runtime \ | ||
path:lib/pkgconfig/glib-2.0.pc:glib2 \ | ||
path:lib/pkgconfig/gtk+-4.0.pc:gtk4 \ | ||
port:libadwaita \ | ||
port:libepoxy \ | ||
port:libnick \ | ||
port:libxmlxx5 | ||
|
||
# Drop with next release | ||
patchfiles-append patch-next.diff | ||
|
||
compiler.cxx_standard 2020 | ||
|
||
configure.args-append \ | ||
-DCMAKE_INSTALL_LIBDIR=${prefix}/libexec/${name} \ | ||
-DUI_PLATFORM=gnome | ||
|
||
if {${os.platform} ne "darwin" || ${os.major} < 12} { | ||
depends_lib-append \ | ||
port:libsecret | ||
configure.args-append \ | ||
-DUSE_LIBSECRET=ON | ||
} | ||
|
||
post-destroot { | ||
# In a case of libstdc++ we install our wrapper to fix malloc errors. | ||
# Otherwise we just rename existing wrapper so that it is recognizable. | ||
# The real binary sits in libexec. | ||
if {${os.platform} eq "darwin" && ${configure.cxx_stdlib} ne "libc++"} { | ||
delete ${destroot}${prefix}/bin/org.nickvision.tubeconverter | ||
copy ${filespath}/${name} ${destroot}${prefix}/bin/ | ||
reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${prefix}/bin/${name} | ||
file attributes ${destroot}${prefix}/bin/${name} -permissions 0755 | ||
} else { | ||
move ${destroot}${prefix}/bin/org.nickvision.tubeconverter \ | ||
${destroot}${prefix}/bin/${name} | ||
} | ||
} | ||
|
||
post-activate { | ||
system "${prefix}/bin/update-desktop-database ${prefix}/share/applications" | ||
system "${prefix}/bin/gtk4-update-icon-cache -f -t ${prefix}/share/icons/hicolor" | ||
} | ||
|
||
# https://trac.macports.org/ticket/70137 | ||
notes " | ||
If you get an error upon launching the app,\ | ||
try setting GSK_RENDERER=cairo in the environment.\ | ||
You may also add it into a shell config file. | ||
" | ||
|
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 @@ | ||
#!/bin/sh | ||
|
||
if [ -n "$DYLD_LIBRARY_PATH" ]; then | ||
DYLD_LIBRARY_PATH=@PREFIX@/lib/libgcc:${DYLD_LIBRARY_PATH} | ||
else | ||
DYLD_LIBRARY_PATH=@PREFIX@/lib/libgcc | ||
fi | ||
export DYLD_LIBRARY_PATH | ||
|
||
exec @PREFIX@/libexec/parabolic/org.nickvision.tubeconverter/org.nickvision.tubeconverter.gnome "$@" |
Oops, something went wrong.