Skip to content

Commit

Permalink
yelp-tools: fix broken installation, revbump
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Dec 18, 2024
1 parent cc15bb4 commit 007e633
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions gnome/yelp-tools/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ PortGroup meson 1.0

name yelp-tools
version 40.0
revision 1
license GPL-2+
set branch [lindex [split ${version} .] 0]
description Tools to help create Yelp documentation.
Expand All @@ -27,20 +28,24 @@ supported_archs noarch
set py_ver 3.12
set py_ver_nodot [string map {. {}} ${py_ver}]

depends_build port:pkgconfig \
depends_build path:bin/pkg-config:pkgconfig \
port:itstool \
port:libxslt \
port:libxml2 \
port:python${py_ver_nodot} \
port:py${py_ver_nodot}-lxml

depends_lib port:yelp-xsl
depends_lib port:yelp-xsl \
port:python${py_ver_nodot}

installs_libs no

post-patch {
reinplace "s|'python3'|'${prefix}/bin/python${py_ver}'|g" \
${worksrcpath}/meson.build
reinplace "s|/usr/bin/python3|${prefix}/bin/python${py_ver}|g" \
${worksrcpath}/tools/yelp-build.in \
${worksrcpath}/tools/yelp-check.in \
${worksrcpath}/tools/yelp-new.in
}

livecheck.type gnome

0 comments on commit 007e633

Please sign in to comment.