Commit 242ed964 authored by Rene Ladan's avatar Rene Ladan
Browse files

devel/cil: Remove expired port

2024-03-31 devel/cil: Unmaintained upstream due to lack of time
parent 040ab4cc
Loading
Loading
Loading
Loading
+1 −0
Changes for MOVED: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -3119,3 +3119,4 @@ java/netcomponents||2024-04-01|Has expired: Last upstream release was in 2000 an
devel/upslug||2024-04-01|Has expired: Utility for a NAS released in 2004 and discontinued in 2008
security/py-sslyze||2024-04-01|Has expired: It does not support OpenSSL 3.0+
security/py-nassl||2024-04-01|Has expired: It does not support OpenSSL 3.0+
devel/cil||2024-04-01|Has expired: Unmaintained upstream due to lack of time
+0 −1
Changes for devel/Makefile: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -381,7 +381,6 @@
    SUBDIR += chroma
    SUBDIR += chrpath
    SUBDIR += chruby
    SUBDIR += cil
    SUBDIR += cirrus-cli
    SUBDIR += cityhash
    SUBDIR += cjose

devel/cil/Makefile

deleted100644 → 0
+0 −95
Changes for devel/cil/Makefile: 0 added lines, 95 removed lines.
Original line number Diff line number Diff line
PORTNAME=	cil
PORTVERSION=	1.7.3
PORTREVISION=	3
CATEGORIES=	devel lang
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Infrastructure for C Program Analysis and Transformation
WWW=		http://kerneis.github.com/cil/

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

DEPRECATED=	Unmaintained upstream due to lack of time
EXPIRATION_DATE=2024-03-31

CONFLICTS=	ccured

BUILD_DEPENDS=	ocamlbuild:devel/ocaml-ocamlbuild \
		${LOCALBASE}/${OCAML_SITELIBDIR}/num/META:math/ocaml-num

ONLY_FOR_ARCHS=	amd64 armv7 i386 powerpc powerpc64 powerpc64le
USES=		gmake perl5
USE_OCAML=	yes
USE_OCAML_FINDLIB=	yes
OCAML_PKGDIRS=
GNU_CONFIGURE=	yes
MAKE_JOBS_UNSAFE=yes

PORTDOCS=	*
PLIST_FILES=	${BINFILES:S,^,bin/,} \
		%%SITE_PERL%%/CilConfig.pm \
		${LIBFILES:S,^,%%SITE_PERL%%/CIL/,} \
		${LIBBINS:S,^,%%SITE_PERL%%/CIL/,} \
		${LIBAFILES:S,^,%%SITE_PERL%%/CIL/,}
BINFILES=	cilly cilly.native
LIBAFILES=	App/Cilly.pm
LIBFILES=	App/Cilly/KeptFile.pm \
		App/Cilly/OutputFile.pm \
		App/Cilly/TempFile.pm
LIBBINS=	patcher

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -e \
		'35 s|make|gmake|g' ${WRKSRC}/myocamlbuild.ml
	@${REINPLACE_CMD} -e \
		's|@CILHOME@/lib|${PREFIX}/${SITE_PERL_REL}/CIL|g ; \
		s|\@CILHOME\@|${PREFIX}|g' \
		${WRKSRC}/lib/App/Cilly/CilConfig.pm.in
	@${REINPLACE_CMD} -e \
		'/^#!/s|/.*|${PERL}|' ${WRKSRC}/lib/patcher
	@${REINPLACE_CMD} -e \
		'/^#!/s|/.*|${PERL}| ; \
		 s|$$::cilhome|${PREFIX}|g ; \
		 s|obj/$$::archos|libexec/cil|g ; \
		 s|^use Cilly;|use CIL::Cilly|' ${WRKSRC}/bin/cilly
	@${REINPLACE_CMD} -e \
		's|^use KeptFile;|use CIL::KeptFile;| ; \
		 s|^use OutputFile;|use CIL::OutputFile;| ; \
		 s|^use TempFile;|use CIL::TempFile;|' \
			${WRKSRC}/lib/App/Cilly.pm.in
	@${REINPLACE_CMD} -e \
		's|^use OutputFile;|use CIL::OutputFile;|' \
		${WRKSRC}/lib/App/Cilly/KeptFile.pm
	@${REINPLACE_CMD} -e \
		's|^use OutputFile;|use CIL::OutputFile;|' \
		${WRKSRC}/lib/App/Cilly/TempFile.pm
	@${REINPLACE_CMD} '/MACHDEPCC/ s|gcc|${CC}|' ${WRKSRC}/Makefile.in

pre-install:
	@${STRIP_CMD} ${WRKSRC}/bin/cilly.native

do-install:
	(cd ${WRKSRC}/bin && ${INSTALL_SCRIPT} ${BINFILES} \
		${STAGEDIR}${PREFIX}/bin)
	@${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/CIL/App/Cilly
	${INSTALL_DATA} ${WRKSRC}/lib/App/Cilly/CilConfig.pm \
		${STAGEDIR}${PREFIX}/${SITE_PERL_REL}
	(cd ${WRKSRC}/lib && ${INSTALL_DATA} ${LIBFILES} \
		${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/CIL/App/Cilly)
	(cd ${WRKSRC}/lib && ${INSTALL_DATA} ${LIBAFILES} \
		${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/CIL/App)
	(cd ${WRKSRC}/lib && ${INSTALL_DATA} ${LIBBINS} \
		${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/CIL)
# Remove orphan dir created by bsd.ocaml.mk
	-@${RMDIR} -p ${STAGEDIR}${OCAMLFIND_DESTDIR}

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	@${RM} -r ${WRKSRC}/doc/cilcode.tmp
	(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>

devel/cil/distinfo

deleted100644 → 0
+0 −2
Changes for devel/cil/distinfo: 0 added lines, 2 removed lines.
Original line number Diff line number Diff line
SHA256 (cil-1.7.3.tar.gz) = 69b7f290d2b15dd44e2b837d3de0922245be841f79ab56a7e9ba8205544be314
SIZE (cil-1.7.3.tar.gz) = 1893257
+0 −25
Changes for devel/cil/files/patch-ocamlutil_errormsg.ml: 0 added lines, 25 removed lines.
Original line number Diff line number Diff line
--- ocamlutil/errormsg.ml.orig	2013-07-24 15:07:11 UTC
+++ ocamlutil/errormsg.ml
@@ -211,16 +211,17 @@ let cleanFileName str = 
     if str <> "" && String.get str 0 = '"' (* '"' ( *) 
     then rem_quotes str else str in
   let l = String.length str1 in
+  let str1 = Bytes.of_string str1 in
   let rec loop (copyto: int) (i: int) = 
     if i >= l then 
-      String.sub str1 0 copyto
+      Bytes.to_string (Bytes.sub str1 0 copyto)
      else 
-       let c = String.get str1 i in
+       let c = Bytes.get str1 i in
        if c <> '\\' then begin
-          String.set str1 copyto c; loop (copyto + 1) (i + 1)
+          Bytes.set str1 copyto c; loop (copyto + 1) (i + 1)
        end else begin
-          String.set str1 copyto '/';
-          if i < l - 2 && String.get str1 (i + 1) = '\\' then
+          Bytes.set str1 copyto '/';
+          if i < l - 2 && Bytes.get str1 (i + 1) = '\\' then
               loop (copyto + 1) (i + 2)
           else 
               loop (copyto + 1) (i + 1)
Loading