Bug 192497 - [PATCH] textproc/clit: broken MASTER_SITES
Summary: [PATCH] textproc/clit: broken MASTER_SITES
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Ion-Mihai "IOnut" Tetcu
URL:
Keywords: patch-ready
Depends on:
Blocks:
 
Reported: 2014-08-08 02:23 UTC by takefu
Modified: 2016-03-29 07:34 UTC (History)
1 user (show)

See Also:


Attachments
clit.patch (3.05 KB, patch)
2014-08-08 02:23 UTC, takefu
no flags Details | Diff
Update libtommath 0.42.0 (12 bytes, patch)
2014-12-30 02:43 UTC, takefu
no flags Details | Diff
clit.patch2 (4.16 KB, patch)
2015-05-08 04:06 UTC, takefu
no flags Details | Diff
clit-1.8_1.patch (3.61 KB, patch)
2016-02-17 00:44 UTC, takefu
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description takefu 2014-08-08 02:23:03 UTC
Created attachment 145500 [details]
clit.patch

fix
 Unable to download http://T32.TecNik93.com
 LibTomMath update 0.33 -> 0.42.0
add
 LICENSE
Comment 1 John Marino freebsd_committer freebsd_triage 2014-08-08 06:45:25 UTC
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.
Comment 2 John Marino freebsd_committer freebsd_triage 2014-08-08 06:46:03 UTC
remind me if 2 weeks passes and you don't hear anything from itetcu@
Comment 3 John Marino freebsd_committer freebsd_triage 2014-10-05 22:29:26 UTC
maintainer timeout -- maintainer approval no longer required.  I'm moving this to patch ready pool for further evaluation.
Comment 4 takefu 2014-12-30 02:43:18 UTC
Created attachment 151101 [details]
Update libtommath 0.42.0
Comment 5 takefu 2015-05-08 04:06:46 UTC
Created attachment 156498 [details]
clit.patch2

divided libtommath.
Comment 6 takefu 2015-05-08 04:10:10 UTC
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
>-
Comment 7 takefu 2016-02-17 00:44:15 UTC
Created attachment 167102 [details]
clit-1.8_1.patch

separation of libtommath
compliance with portlint