w3m: add v0.5.3.git20230121 (#45747)
This commit is contained in:
parent
533de03fef
commit
7403469413
@ -22,11 +22,17 @@ class W3m(AutotoolsPackage):
|
|||||||
# Currently, Arch and Ubuntu (and Debian derivatives) use Debian's branch.
|
# Currently, Arch and Ubuntu (and Debian derivatives) use Debian's branch.
|
||||||
# Also, Gentoo, Fedora and openSUSE switched to Debian's branch.
|
# Also, Gentoo, Fedora and openSUSE switched to Debian's branch.
|
||||||
homepage = "https://w3m.sourceforge.net/index.en.html"
|
homepage = "https://w3m.sourceforge.net/index.en.html"
|
||||||
url = "https://downloads.sourceforge.net/project/w3m/w3m/w3m-0.5.3/w3m-0.5.3.tar.gz"
|
url = "https://salsa.debian.org/debian/w3m/-/archive/upstream/0.5.3+git20230121/w3m-upstream-0.5.3+git20230121.tar.gz"
|
||||||
|
git = "https://salsa.debian.org/debian/w3m.git"
|
||||||
|
|
||||||
maintainers("ronin_gw")
|
maintainers("ronin_gw")
|
||||||
|
|
||||||
license("MIT")
|
license("MIT")
|
||||||
|
|
||||||
|
version(
|
||||||
|
"0.5.3.git20230121",
|
||||||
|
sha256="8f0592e1cf7cf1de053e22c114cd79b85ebdb8dab925be7d343a130343b97c25",
|
||||||
|
)
|
||||||
version("0.5.3", sha256="e994d263f2fd2c22febfbe45103526e00145a7674a0fda79c822b97c2770a9e3")
|
version("0.5.3", sha256="e994d263f2fd2c22febfbe45103526e00145a7674a0fda79c822b97c2770a9e3")
|
||||||
|
|
||||||
depends_on("c", type="build") # generated
|
depends_on("c", type="build") # generated
|
||||||
@ -66,8 +72,15 @@ class W3m(AutotoolsPackage):
|
|||||||
depends_on("imlib2@1.0.5:", when="imagelib=imlib2 +image")
|
depends_on("imlib2@1.0.5:", when="imagelib=imlib2 +image")
|
||||||
|
|
||||||
# fix for modern libraries
|
# fix for modern libraries
|
||||||
patch("fix_redef.patch")
|
patch("fix_redef.patch", when="@=0.5.3")
|
||||||
patch("fix_gc.patch")
|
patch("fix_gc.patch", when="@=0.5.3")
|
||||||
|
|
||||||
|
def url_for_version(self, version):
|
||||||
|
if ".git" in version.string:
|
||||||
|
v = version.string.replace(".git", "+git")
|
||||||
|
return f"https://salsa.debian.org/debian/w3m/-/archive/upstream/{v}/w3m-upstream-{v}.tar.gz"
|
||||||
|
else:
|
||||||
|
return f"https://downloads.sourceforge.net/project/w3m/w3m/w3m-{version}/w3m-{version}.tar.gz"
|
||||||
|
|
||||||
def patch(self):
|
def patch(self):
|
||||||
# w3m is not developed since 2012, everybody is doing this:
|
# w3m is not developed since 2012, everybody is doing this:
|
||||||
|
Loading…
Reference in New Issue
Block a user