net/unison: Unhook x11 flavor
This commit is contained in:
parent
f9b59ba63d
commit
4ac5b73aff
@ -10,19 +10,6 @@ WWW= https://www.cis.upenn.edu/~bcpierce/unison/
|
||||
LICENSE= GPLv3+
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
FLAVORS= x11 nox11
|
||||
FLAVOR?= ${FLAVORS:[1]}
|
||||
|
||||
nox11_PKGNAMESUFFIX= -nox11
|
||||
nox11_CONFLICTS_INSTALL= unison
|
||||
|
||||
x11_BUILD_DEPENDS= icotool:graphics/icoutils \
|
||||
ocaml-lablgtk3>0:x11-toolkits/ocaml-lablgtk3
|
||||
x11_LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
|
||||
libfreetype.so:print/freetype2 \
|
||||
libharfbuzz.so:print/harfbuzz
|
||||
x11_CONFLICTS_INSTALL= unison-nox11
|
||||
|
||||
USES= gmake localbase ocaml:build
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= bcpierce00
|
||||
@ -32,66 +19,27 @@ MAKE_ENV= CLIBS="${LIBS:S/^-/-ccopt -/}" \
|
||||
WRKSRC_SUBDIR= src
|
||||
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
||||
|
||||
OPTIONS_DEFINE= DOCS FSMONITOR
|
||||
OPTIONS_DEFINE= FSMONITOR
|
||||
OPTIONS_DEFAULT?= FSMONITOR
|
||||
OPTIONS_SUB= YES
|
||||
|
||||
FSMONITOR_DESC= Compile and install fsmonitor plugin
|
||||
|
||||
DOCS_USES= tex
|
||||
DOCS_USE= TEX=dvipsk:build,latex:build
|
||||
|
||||
FSMONITOR_LIB_DEPENDS= libinotify.so:devel/libinotify
|
||||
|
||||
.if ${FLAVOR} == nox11
|
||||
ALL_TARGET= tui
|
||||
PKGMESSAGE= ${PKGDIR}/pkg-message.nox11
|
||||
PLIST_SUB+= X11="@comment "
|
||||
.else
|
||||
ALL_TARGET= tui guimaybe
|
||||
SUB_FILES= ${PORTNAME}.desktop
|
||||
USE_GNOME= atk cairo gdkpixbuf glib20 gtk30 pango
|
||||
USES+= gettext-runtime gnome
|
||||
PLIST_SUB+= X11=""
|
||||
.endif
|
||||
|
||||
DOCS= NEWS.md README.md
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${ARCH} == powerpc
|
||||
USE_BINUTILS= yes
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MFSMONITOR}
|
||||
ALL_TARGET+= fsmonitor
|
||||
.endif
|
||||
|
||||
post-build:
|
||||
cd ${WRKSRC} && HOME=${WRKSRC} ./unison -selftest -ui text -batch
|
||||
${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C ${WRKSRC}/../man
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C ${WRKSRC}/../doc unison-manual.pdf
|
||||
.endif
|
||||
.if ${FLAVOR} == x11
|
||||
cd ${WRKSRC}/win32rc && ${LOCALBASE}/bin/icotool -x U.ico
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
.if ${FLAVOR} == nox11
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
||||
.else
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-gui ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-text
|
||||
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/win32rc/U_4_48x48x32.png ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
|
||||
.endif
|
||||
${INSTALL_MAN} ${WRKSRC}/../man/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/share/man/man1
|
||||
|
||||
do-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
cd ${WRKSRC}/.. && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
|
||||
cd ${WRKSRC}/../doc && ${INSTALL_DATA} unison-manual.pdf ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
do-install-FSMONITOR-on:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-fsmonitor ${STAGEDIR}${PREFIX}/bin
|
||||
|
||||
@ -1,8 +1,7 @@
|
||||
[
|
||||
{ type: install
|
||||
message: <<EOM
|
||||
Together with a gtk-enabled version, a text-only unison-text binary
|
||||
is installed as it depends on a smaller number of libraries.
|
||||
A text-only unison binary is installed.
|
||||
EOM
|
||||
}
|
||||
]
|
||||
|
||||
@ -1,7 +0,0 @@
|
||||
[
|
||||
{ type: install
|
||||
message: <<EOM
|
||||
A text-only unison binary is installed.
|
||||
EOM
|
||||
}
|
||||
]
|
||||
@ -1,9 +1,2 @@
|
||||
bin/unison
|
||||
%%FSMONITOR%%bin/unison-fsmonitor
|
||||
%%X11%%share/applications/unison.desktop
|
||||
%%X11%%bin/unison-text
|
||||
%%X11%%share/pixmaps/unison.png
|
||||
share/man/man1/unison.1.gz
|
||||
%%PORTDOCS%%%%DOCSDIR%%/NEWS.md
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README.md
|
||||
%%PORTDOCS%%%%DOCSDIR%%/unison-manual.pdf
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user