Commit 8345e8d4 authored by Rene Ladan's avatar Rene Ladan
Browse files

net/unison251: Remove expired port

2026-06-30 net/unison251: Legacy release unsupported by upstream
parent 541c8e90
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5454,3 +5454,4 @@ japanese/wnn7egg||2026-06-30|Has expired: Abandoned, A patch is needed for the c
www/node25|www/node26|2026-06-30|Has expired: Node.js 25.* will reach its EoL on 2026-06-01. Use Node.js 26.* (www/node26) instead
www/npm-node25|www/npm-node26|2026-06-30|Has expired: consumer of www/node25
www/yarn-node25|www/yarn-node26|2026-06-30|Has expired: consumer of www/node25
net/unison251||2026-06-30|Has expired: Legacy release unsupported by upstream
+0 −1
Original line number Diff line number Diff line
@@ -1663,7 +1663,6 @@
    SUBDIR += ulxmlrpcpp
    SUBDIR += unfs3
    SUBDIR += unison
    SUBDIR += unison251
    SUBDIR += unison253
    SUBDIR += unix2tcp
    SUBDIR += urelay

net/unison251/Makefile

deleted100644 → 0
+0 −117
Original line number Diff line number Diff line
PORTNAME=	unison
PORTVERSION=	2.51.5
PORTREVISION=	3
DISTVERSIONPREFIX=	v
CATEGORIES=	net

MAINTAINER=	madpilot@FreeBSD.org
COMMENT=	User-level file synchronization tool
WWW=		https://www.cis.upenn.edu/~bcpierce/unison/

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/COPYING

FLAVORS=	x11 nox11
FLAVOR?=	${FLAVORS:[1]}

VERSIONSUFFIX=	251

DEPRECATED=	Legacy release unsupported by upstream
EXPIRATION_DATE=	2026-06-30

nox11_PKGNAMESUFFIX=		${VERSIONSUFFIX}-nox11
nox11_CONFLICTS_INSTALL=	unison${VERSIONSUFFIX}

x11_PKGNAMESUFFIX=	${VERSIONSUFFIX}
x11_BUILD_DEPENDS=	icotool:graphics/icoutils \
			lablgtk2:x11-toolkits/ocaml-lablgtk2
x11_LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
			libfreetype.so:print/freetype2 \
			libharfbuzz.so:print/harfbuzz
x11_CONFLICTS_INSTALL=	unison${VERSIONSUFFIX}-nox11

USES=		gmake localbase ocaml:build
USE_GITHUB=	yes
GH_ACCOUNT=	bcpierce00

MAKE_ENV=	CLIBS="${LIBS:S/^-/-ccopt -/}" \
		COFLAGS="${CFLAGS:C/ *(-[^ ]*) */ -ccopt \"\1 \"/gW}"
ALL_TARGET=	unison all

DOCS=		NEWS README

WRKSRC_SUBDIR=	src

PLIST_SUB=	PORTVERSION=${PORTVERSION} \
		VERSIONSUFFIX=${VERSIONSUFFIX}

OPTIONS_DEFINE=		DOCS FSMONITOR
OPTIONS_DEFAULT=	FSMONITOR
OPTIONS_SUB=		YES

FSMONITOR_DESC=	Compile and install fsmonitor plugin

FSMONITOR_LIB_DEPENDS=	libinotify.so:devel/libinotify

.if ${FLAVOR} == nox11
MAKE_ARGS=	UISTYLE=text
PKGMESSAGE=	${PKGDIR}/pkg-message.nox11
PLIST_SUB+=	X11="@comment "
.else
MAKE_ARGS=	UISTYLE=gtk2
SUB_FILES=	${PORTNAME}.desktop
USE_GNOME+=	atk cairo gdkpixbuf glib20 gtk20 pango
USES+=		gettext-runtime gnome
PLIST_SUB+=	X11=""
.endif

.include <bsd.port.options.mk>

.if ${ARCH} == powerpc
USE_BINUTILS=	yes
.endif

post-patch-FSMONITOR-off:
	@${REINPLACE_CMD} -e 's/-include fsmonitor/#&/' \
		${WRKSRC}/Makefile.OCaml

post-patch-FSMONITOR-on:
	@${REINPLACE_CMD} \
		-e '/let suffix = if Util.osType/s/else "" in/else "${VERSIONSUFFIX}" in/' \
		${WRKSRC}/fswatch.ml

post-patch:
.if ${FLAVOR} == nox11
	@${REINPLACE_CMD} -e 's/CFLAGS/COFLAGS/g' \
		${WRKSRC}/Makefile.OCaml ${WRKSRC}/fsmonitor/linux/Makefile
.else
	@${REINPLACE_CMD} -Ee 's@(\+|/)(lablgtk2)@\1site-lib/\2@' \
		-e 's/CFLAGS/COFLAGS/g' \
		${WRKSRC}/Makefile.OCaml ${WRKSRC}/fsmonitor/linux/Makefile
.endif

post-build:
	(cd ${WRKSRC} && HOME=${WRKSRC} ./unison -selftest -ui text -batch)
.if ${FLAVOR} == x11
	@${ECHO} Building text-only version
	@${ECHO} ${WRKSRC}
	${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C ${WRKSRC} UISTYLE=text NAME=unison-text
	@cd ${WRKSRC}/win32rc && ${LOCALBASE}/bin/icotool -x U.ico
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}${VERSIONSUFFIX}
.if ${FLAVOR} == x11
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-text ${STAGEDIR}${PREFIX}/bin/${PORTNAME}${VERSIONSUFFIX}-text
	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}/${PORTNAME}${VERSIONSUFFIX}.desktop
	${INSTALL_DATA} ${WRKSRC}/win32rc/U_4_48x48x32.png ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}${VERSIONSUFFIX}.png
.endif

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}

do-install-FSMONITOR-on:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-fsmonitor ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-fsmonitor${VERSIONSUFFIX}

.include <bsd.port.mk>

net/unison251/distinfo

deleted100644 → 0
+0 −3
Original line number Diff line number Diff line
TIMESTAMP = 1639862759
SHA256 (bcpierce00-unison-v2.51.5_GH0.tar.gz) = 7e876371992ebf890b60f32df880a98a75fe8c47c06b7b2ae2ad36be48013e83
SIZE (bcpierce00-unison-v2.51.5_GH0.tar.gz) = 1385407
+0 −46
Original line number Diff line number Diff line
--- Makefile.OCaml.orig	2021-12-18 15:04:56 UTC
+++ Makefile.OCaml
@@ -34,7 +34,11 @@ ifeq ($(shell uname),NetBSD)
 else
 ifeq ($(shell uname),NetBSD)
   OSARCH=NetBSD
+else
+ifeq ($(shell uname),FreeBSD)
+  OSARCH=FreeBSD
 endif
+endif
 ifeq ($(shell uname),Linux)
   OSARCH=Linux
 endif
@@ -301,6 +305,11 @@ endif
 INCLFLAGS+=-I fsmonitor -I fsmonitor/linux
 endif
 
+ifeq ($(OSARCH),FreeBSD)
+-include fsmonitor/linux/Makefile src/fsmonitor/linux/Makefile
+INCLFLAGS+=-I fsmonitor -I fsmonitor/linux
+endif
+
 ifeq ($(OSARCH),solaris)
 -include fsmonitor/solaris/Makefile src/fsmonitor/solaris/Makefile
 INCLFLAGS+=-I fsmonitor -I fsmonitor/solaris
@@ -427,6 +436,10 @@ win32rc/unison.res.lib: win32rc/unison.res
 	-$(RM) $@
 	ocamllex $<
 
+compat%.cmi: compat%.mli
+	@echo "$(CAMLC): $< ---> $@"
+	$(CAMLC) $(CAMLFLAGS) $(COMPATCAMLFLAGS) -c $(CWD)/$<
+
 %.cmi : %.mli
 	@echo "$(CAMLC): $< ---> $@"
 	$(CAMLC) $(CAMLFLAGS) $(COMPATCAMLFLAGS) -c $(CWD)/$<
@@ -451,7 +464,7 @@ compat%.cmx: compat%.ml
 
 %.o %.obj: %.c
 	@echo "$(CAMLC): $< ---> $@"
-	$(CAMLC) $(CAMLFLAGS) -ccopt $(OUTPUT_SEL)$(CWD)/$@ -c $(CWD)/$<
+	$(CAMLC) $(CAMLFLAGS) -ccopt $(OUTPUT_SEL)$(CWD)/$@ -c $(CFLAGS) $(CWD)/$<
 
 $(NAME)$(EXEC_EXT): $(CAMLOBJS) $(COBJS)
 	@echo Linking $@
Loading