Skip to content

Commit

Permalink
user/texlive: new package
Browse files Browse the repository at this point in the history
  • Loading branch information
subnut committed Sep 17, 2024
1 parent 30d5b29 commit ca991d2
Show file tree
Hide file tree
Showing 4 changed files with 120 additions and 0 deletions.
1 change: 1 addition & 0 deletions user/texlive-devel
1 change: 1 addition & 0 deletions user/texlive-libs
13 changes: 13 additions & 0 deletions user/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;
105 changes: 105 additions & 0 deletions user/texlive/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
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=/Chimera 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"

This comment has been minimized.

Copy link
@caioraposo

caioraposo Sep 27, 2024

Contributor

GNU make is the default one now.
see: de85b12

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"https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/{pkgver[:4]}/texlive-{pkgver}-source.tar.xz"
sha256 = "7b6d87cf01661670fac45c93126bed97b9843139ed510f975d047ea938b6fe96"
broken_symlinks = ["usr/bin/*"]
# 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}", recursive=True)


def post_install(self):
# texmf-dist is provided by texmf
self.uninstall("usr/share/texmf-dist")


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


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

0 comments on commit ca991d2

Please sign in to comment.