Created attachment 145500 [details] clit.patch fix Unable to download http://T32.TecNik93.com LibTomMath update 0.33 -> 0.42.0 add LICENSE
technically this port is still maintained and the patch is more than fix a problem, so it needs to go to the listed maintainer first.
remind me if 2 weeks passes and you don't hear anything from itetcu@
maintainer timeout -- maintainer approval no longer required. I'm moving this to patch ready pool for further evaluation.
Created attachment 151101 [details] Update libtommath 0.42.0
Created attachment 156498 [details] clit.patch2 divided libtommath.
Comment on attachment 156498 [details] clit.patch2 >diff -ruN /usr/ports/textproc/clit/Makefile ./Makefile >--- /usr/ports/textproc/clit/Makefile 2014-06-25 05:35:31.000000000 +0000 >+++ ./Makefile 2015-05-08 04:03:22.000000000 +0000 >@@ -2,41 +2,33 @@ > # $FreeBSD: head/textproc/clit/Makefile 359185 2014-06-25 05:35:31Z bapt $ > > PORTNAME= clit >-PORTVERSION= ${MAJ_VER}.${MIN_VER} >+PORTVERSION= 1.8 >+PORTREVISION= 1 > CATEGORIES= textproc >-MASTER_SITES= http://www.convertlit.com/:clit \ >- http://T32.TecNik93.com/FreeBSD/ports/${PORTNAME}/sources/:clit \ >- http://T32.TecNik93.com/FreeBSD/ports/${PORTNAME}/sources/:ltm >-DISTFILES= clit${MAJ_VER}${MIN_VER}src.zip:clit \ >- ltm-0.33.tar.bz2:ltm >-EXTRACT_ONLY= clit${MAJ_VER}${MIN_VER}src.zip >+MASTER_SITES= http://www.convertlit.com/ >+DISTFILES= ${DISTNAME:S|-||:S|.||}src.zip > > MAINTAINER= itetcu@FreeBSD.org > COMMENT= Microsoft Lit to HTML and Open eBooks converter > >-PATCH_WRKSRC= ${WRKDIR}/${PORTNAME}${MAJ_VER}${MIN_VER} >-NO_WRKSUBDIR= yes >+LICENSE= GPLv2 > >-MAJ_VER= 1 >-MIN_VER= 8 >+LIB_DEPENDS= libtommath.a:${PORTSDIR}/math/libtommath >+CPPFLAGS+= -I${LOCALBASE}/include >+LDFLAGS+= -L${LOCALBASE}/lib >+NO_WRKSUBDIR= yes > > PLIST_FILES= bin/clit > >-USES= dos2unix gmake zip >+USES= dos2unix gmake zip >+DOS2UNIX_FILES= ${WRKDIR}/clit18/Makefile > >-post-extract: >- cd ${WRKDIR} && ${BZIP2_CMD} -dc "${DISTDIR}/ltm-0.33.tar.bz2" | \ >- ${TAR} -xf - >- >-do-build: >- cd ${WRKDIR}/libtommath-0.33 && \ >- ${SETENV} ${MAKE_ENV} ${MAKE} -f makefile libtommath.a >- cd ${WRKDIR}/lib && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} -f Makefile all >- cd ${WRKDIR}/${PORTNAME}${MAJ_VER}${MIN_VER} && \ >- ${SETENV} ${MAKE_ENV} ${MAKE_CMD} -f Makefile all >+post-patch: >+ ${REINPLACE_CMD} -e 's|%%CC%%|${CC}|g'\ >+ -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKDIR}/clit18/Makefile >+ ${CP} ${FILESDIR}/Makefile ${WRKDIR}/Makefile > > do-install: >- @${INSTALL_PROGRAM} ${WRKDIR}/${PORTNAME}${MAJ_VER}${MIN_VER}/clit \ >- ${STAGEDIR}${PREFIX}/bin >+ ${INSTALL_PROGRAM} ${WRKDIR}/clit18/clit ${STAGEDIR}${PREFIX}/bin > > .include <bsd.port.mk> >diff -ruN /usr/ports/textproc/clit/distinfo ./distinfo >--- /usr/ports/textproc/clit/distinfo 2014-01-22 15:30:13.000000000 +0000 >+++ ./distinfo 2015-05-08 04:01:23.000000000 +0000 >@@ -1,4 +1,2 @@ > SHA256 (clit18src.zip) = d70a85f5b945104340d56f48ec17bcf544e3bb3c35b1b3d58d230be699e557ba > SIZE (clit18src.zip) = 135120 >-SHA256 (ltm-0.33.tar.bz2) = 94a8c3d4f51ca80a9d28fc91293eccd64782f9e9f62161eb2d857abf7eb04004 >-SIZE (ltm-0.33.tar.bz2) = 1899564 >diff -ruN /usr/ports/textproc/clit/files/Makefile ./files/Makefile >--- /usr/ports/textproc/clit/files/Makefile 1970-01-01 00:00:00.000000000 +0000 >+++ ./files/Makefile 2015-05-08 04:02:18.000000000 +0000 >@@ -0,0 +1,3 @@ >+all: >+ cd lib ; gmake >+ cd clit18 ; gmake >diff -ruN /usr/ports/textproc/clit/files/patch-Makefile ./files/patch-Makefile >--- /usr/ports/textproc/clit/files/patch-Makefile 1970-01-01 00:00:00.000000000 +0000 >+++ ./files/patch-Makefile 2015-05-08 03:50:49.000000000 +0000 >@@ -0,0 +1,14 @@ >+--- clit18/Makefile.bak 2004-07-04 07:52:14 UTC >++++ clit18/Makefile >+@@ -1,9 +1,9 @@ >+ all: clit >+ >+-CFLAGS=-funsigned-char -Wall -O2 -I ../libtommath-0.30/ -I ../lib -I ../lib/des -I . >++CFLAGS=-funsigned-char -Wall -O2 -I%%PREFIX%%/lib -I ../lib -I ../lib/des -I . >+ clean: >+ rm -f *.o clit >+ >+ clit: clit.o hexdump.o drm5.o explode.o transmute.o display.o utils.o manifest.o ../lib/openclit.a >+- gcc -o clit $^ ../libtommath-0.30/libtommath.a >++ %%CC%% -o clit $^ /usr/local/lib/libtommath.a >+ >diff -ruN /usr/ports/textproc/clit/files/patch-clit_Makefile ./files/patch-clit_Makefile >--- /usr/ports/textproc/clit/files/patch-clit_Makefile 2014-01-22 17:40:44.000000000 +0000 >+++ ./files/patch-clit_Makefile 1970-01-01 00:00:00.000000000 +0000 >@@ -1,14 +0,0 @@ >---- Makefile.orig Sun Jul 4 16:52:14 2004 >-+++ Makefile Fri Jan 14 21:56:45 2005 >-@@ -1,9 +1,9 @@ >- all: clit >- >--CFLAGS=-funsigned-char -Wall -O2 -I ../libtommath-0.30/ -I ../lib -I ../lib/des -I . >-+CFLAGS=-funsigned-char -Wall -O2 -I ../libtommath-0.33/ -I ../lib -I ../lib/des -I . >- clean: >- rm -f *.o clit >- >- clit: clit.o hexdump.o drm5.o explode.o transmute.o display.o utils.o manifest.o ../lib/openclit.a >-- gcc -o clit $^ ../libtommath-0.30/libtommath.a >-+ ${CC} -o clit $^ ../libtommath-0.33/libtommath.a >-
Created attachment 167102 [details] clit-1.8_1.patch separation of libtommath compliance with portlint