science/chemical-mime-data: Fix build with 'poud bulk -t' and slightly modernize

@unexec is deprecated and actually not needed anymore, because the directory
in question is handled by the shared-mime-info trigger.
This commit is contained in:
Gleb Popov 2025-01-11 10:56:47 +03:00
parent 84e07469e6
commit 51acd11ed5
2 changed files with 3 additions and 6 deletions

View file

@ -1,6 +1,6 @@
PORTNAME= chemical-mime-data
PORTVERSION= 0.1.94
PORTREVISION= 10
PORTREVISION= 11
CATEGORIES= science
MASTER_SITES= SF/chemical-mime/${PORTNAME}/${PORTVERSION}
@ -8,13 +8,11 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Collection of chemical MIME types for UNIX desktops
WWW= http://chemical-mime.sourceforge.net/
USES= gettext-tools gmake gnome pathfix pkgconfig shared-mime-info \
tar:bzip2
USES= gettext-tools gmake gnome localbase:ldflags pathfix pkgconfig \
shared-mime-info tar:bzip2
USE_GNOME= gnomemimedata intlhack librsvg2:build libxslt:build
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-update-database
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
post-patch:
@${REINPLACE_CMD} -e 's|*-*-solaris*|*| ; s|rsvg|rsvg-convert|g' ${WRKSRC}/configure

View file

@ -61,4 +61,3 @@ share/mimelnk/chemical/x-ncbi-asn1.desktop
share/mimelnk/chemical/x-shelx.desktop
share/mimelnk/chemical/x-vmd.desktop
share/mimelnk/chemical/x-xyz.desktop
@unexec rm -rf %D/share/mime/chemical