Skip to content

Commit

Permalink
contrib/texlive: new package
Browse files Browse the repository at this point in the history
  • Loading branch information
subnut committed Sep 15, 2024
1 parent a732c93 commit 3153b1d
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 0 deletions.
1 change: 1 addition & 0 deletions contrib/texlive-devel
1 change: 1 addition & 0 deletions contrib/texlive-libs
13 changes: 13 additions & 0 deletions contrib/texlive/patches/00-texk-dvipsk-afm2tfm_c.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
--- a/texk/dvipsk/afm2tfm.c
+++ b/texk/dvipsk/afm2tfm.c
@@ -66,10 +66,6 @@

#include "dvips.h"
/* debug.h redefines fopen to my_real_fopen, but it's still a FILE * */
-#ifdef fopen
-#undef fopen
-extern FILE *fopen ();
-#endif

struct encoding {
const char *name;
104 changes: 104 additions & 0 deletions contrib/texlive/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
pkgname = "texlive"
pkgver = "20240312"
pkgrel = 0
build_wrksrc = "build"
build_style = "configure"
configure_script = "../configure"
configure_args = [
"-C",
"--prefix=/usr",
"--sysconfdir=/etc",
"--disable-native-texlive-build",
"--disable-silent-rules",
"--disable-static",
"--disable-xdvik", # XXX: Needs libXaw
"--enable-shared",
"--enable-tex-synctex",
"--with-banner-add=/Alpine Linux",
"--with-system-cairo",
"--with-system-freetype2",
"--with-system-gd",
"--with-system-gmp",
"--with-system-graphite2",
"--with-system-harfbuzz",
"--with-system-icu",
"--with-system-libpaper",
"--with-system-libpng",
"--with-system-mpfr",
"--with-system-pixman",
"--with-system-potrace",
"--with-system-teckit",
"--with-system-zlib",
"--with-system-zziplib",
# "--with-system-kpathsea",
# "--with-system-ptexenc",
]
make_cmd = "gmake"
hostmakedepends = [
"automake",
"libtool",
"pkgconf",
]
makedepends = [
"cairo-devel",
"freetype-devel",
"gmp-devel",
"graphite2-devel",
"harfbuzz-devel",
"icu-devel",
"libgd-devel",
"libpaper-devel",
"libpng-devel",
"mpfr-devel",
"pixman-devel",
"potrace-devel",
"teckit-devel",
"zlib-ng-compat-devel",
"zziplib-devel",
]
depends = [self.with_pkgver("texmf")]
pkgdesc = "Comprehensive TeX distribution"
maintainer = "Subhaditya Nath <[email protected]>"
license = "GPL-3.0-or-later"
url = "https://tug.org/texlive"
source = f"ftp://tug.org/historic/systems/texlive/{pkgver[:4]}/texlive-{pkgver}-source.tar.xz"
sha256 = "7b6d87cf01661670fac45c93126bed97b9843139ed510f975d047ea938b6fe96"
# XXX: few tests are failing with SIGILL
options = ["!check"]


def post_extract(self):
self.mkdir(self.build_wrksrc)
for lib in (
"cairo",
"freetype2",
"gd",
"gmp",
"graphite2",
"harfbuzz",
"icu",
"libpaper",
"libpng",
"mpfr",
"pixman",
"potrace",
"teckit",
"zlib",
"zziplib",
):
self.rm(f"libs/{lib}", True)


def post_install(self):
# texmf-dist is provided by texmf
self.rm(">/usr/share/texmf-dist", True)


@subpackage("texlive-libs")
def _(self):
return self.default_libs()


@subpackage("texlive-devel")
def _(self):
return self.default_devel()

0 comments on commit 3153b1d

Please sign in to comment.