Skip to content

Commit b77cf94

Browse files
committed
latex2rtf: update urls to new repos
1 parent e4230ae commit b77cf94

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

Formula/l/latex2rtf.rb

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
class Latex2rtf < Formula
22
desc "Translate LaTeX to RTF"
33
homepage "https://latex2rtf.sourceforge.net/"
4-
url "https://downloads.sourceforge.net/project/latex2rtf/latex2rtf-unix/2.3.18/latex2rtf-2.3.18a.tar.gz"
4+
# TODO: Switch to GitHub repo tarballs when upstream does a new release
5+
url "https://deb.debian.org/debian/pool/main/l/latex2rtf/latex2rtf_2.3.18a.orig.tar.gz"
56
sha256 "338ba2e83360f41ded96a0ceb132db9beaaf15018b36101be2bae8bb239017d9"
67
license "GPL-2.0-or-later"
78

89
livecheck do
9-
url :stable
10-
regex(%r{url=.*?/latex2rtf/files/latex2rtf-unix/[^/]+/latex2rtf[._-](\d+(?:[.-]\d+)+[a-z]?)\.t}i)
10+
skip "New git repository doesn't have 2.x tags yet"
1111
end
1212

1313
bottle do
@@ -25,7 +25,17 @@ class Latex2rtf < Formula
2525
sha256 x86_64_linux: "4614b529d342e3e532c2c36fc3b6090dd889261c05ba3ea21847a276a063e4c5"
2626
end
2727

28+
head do
29+
url "https://github.com/latex2rtf/latex2rtf.git", branch: "main"
30+
31+
on_system :linux, macos: :ventura_or_newer do
32+
depends_on "texinfo" => :build
33+
end
34+
end
35+
2836
def install
37+
touch "doc/latex2rtf.pdf" if build.head? # avoid texlive
38+
2939
inreplace "Makefile", "cp -p doc/latex2rtf.html $(DESTDIR)$(SUPPORTDIR)",
3040
"cp -p doc/web/* $(DESTDIR)$(SUPPORTDIR)"
3141
system "make", "DESTDIR=",

0 commit comments

Comments
 (0)