pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: texdoc in pkgsrc



Dear Taylor,

On 2023-11-04, Yorick Hardy wrote:
> Dear Taylor,
> 
> On 2023-10-31, Taylor R Campbell wrote:
> > How do I make texdoc work in pkgsrc?
> > 
> > $ texdoc hyperref
> > texdoc error: No texlive.tlpdb nor shipped tlpdb data found.
> > 
> > I grepped pkgsrc for the text `tlpdb' and nothing came up.
> 
> I am not great at keeping it up to date, but I tried to solve this
> problem with
> 
>  wip/texlive-tlpdb
> 
> There was an e-mail somewhere explaining what texlive believes
> packagers should so, I will try to find it again (but I won't
> have much time for most of this month).

I looked a bit more, and updated wip/texlive-tlpdb. It seems to me
that we should install an empty texlive package database, since
packages are not managed by texlive, and the database is needed by
texdoc.

Maybe something like the patch below?

-- 
Kind regards,

Yorick Hardy

Index: print/tex-texlive.infra/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/print/tex-texlive.infra/Makefile,v
retrieving revision 1.32
diff -u -u -r1.32 Makefile
--- print/tex-texlive.infra/Makefile	11 Apr 2023 00:26:25 -0000	1.32
+++ print/tex-texlive.infra/Makefile	5 Nov 2023 22:01:52 -0000
@@ -13,6 +13,7 @@
 TEXLIVE_IGNORE_PATTERNS=	texmf-dist/scripts
 
 INSTALLATION_DIRS+=	${PERL5_SUB_INSTALLVENDORLIB}/TeXLive
+INSTALLATION_DIRS+=	share/tlpkg
 TEX_TEXMF_DIRS+=	${PREFIX}/share/texmf-dist
 
 SUBST_CLASSES+=		paths
@@ -26,5 +27,7 @@
 do-install:
 	${INSTALL_DATA} ${WRKSRC}/tlpkg/TeXLive/*.pm \
 		${DESTDIR}${PREFIX}/${PERL5_SUB_INSTALLVENDORLIB}/TeXLive/
+	${TOUCH} ${WRKDIR}/texlive.tlpdb
+	${INSTALL_DATA} ${WRKDIR}/texlive.tlpdb ${DESTDIR}${PREFIX}/share/tlpkg/
 
 .include "../../mk/bsd.pkg.mk"
Index: print/tex-texlive.infra/PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/print/tex-texlive.infra/PLIST,v
retrieving revision 1.4
diff -u -u -r1.4 PLIST
--- print/tex-texlive.infra/PLIST	16 Jun 2016 04:06:17 -0000	1.4
+++ print/tex-texlive.infra/PLIST	5 Nov 2023 22:01:52 -0000
@@ -13,3 +13,4 @@
 ${PERL5_SUB_INSTALLVENDORLIB}/TeXLive/TeXCatalogue.pm
 share/texmf-dist/web2c/fmtutil-hdr.cnf
 share/texmf-dist/web2c/updmap-hdr.cfg
+share/tlpkg/texlive.tlpdb


Home | Main Index | Thread Index | Old Index