mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
sysutils/libudisks: Rework port
- Use upstream release archive as recommended by Porters Handbook (USE_GITHUB section) which also removes dependency of gtk-doc except when UDISKSCTL is enabled - Update comments in Makefile - Use framework helpers for DOCS - Rearrange Makefile to improve readability PR: 267268 Reviewed by: pauamma (maintainer)
This commit is contained in:
parent
3375d85b5e
commit
9e33b6856e
@ -1,8 +1,8 @@
|
||||
PORTNAME= libudisks
|
||||
PORTVERSION= 2.9.4
|
||||
# Obviates the need to specify GH_TAGNAME and repeat the version number later
|
||||
DISTVERSIONPREFIX= udisks-
|
||||
DISTVERSION= 2.9.4
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= https://github.com/storaged-project/udisks/releases/download/udisks-${DISTVERSION}/
|
||||
DISTNAME= udisks-${DISTVERSION}
|
||||
|
||||
MAINTAINER= pauamma@FreeBSD.org
|
||||
COMMENT= Library to manipulate storage devices, from udisks
|
||||
@ -14,43 +14,39 @@ LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
# pkaction takes care of libpolkit-agent-1 and libpolkit-gobject-1
|
||||
# which are what we really want (see UDISKSCTL_LIB_DEPENDS).
|
||||
BUILD_DEPENDS= bash:shells/bash \
|
||||
gtkdocize:textproc/gtk-doc \
|
||||
pkaction:sysutils/polkit
|
||||
|
||||
# For some reason, configure wants autopoint from gettext-tools even when
|
||||
# NLS is disabled.
|
||||
USES= autoreconf:build gettext-tools:build gmake gnome \
|
||||
libtool:build pkgconfig
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= storaged-project
|
||||
GH_PROJECT= udisks
|
||||
|
||||
USES= gettext-tools:build gmake gnome libtool pkgconfig tar:bz2
|
||||
USE_GNOME= glib20 introspection
|
||||
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
# config.status errors out without --disable-dependency-tracking, with or
|
||||
# without USES=gmake. --with-libintl-prefix is needed because otherwise
|
||||
# --with-libintl-prefix is needed because otherwise
|
||||
# configure won't find libintl when PREFIX != LOCALBASE.
|
||||
CONFIGURE_ARGS= --disable-daemon --disable-dependency-tracking \
|
||||
CONFIGURE_ARGS= --disable-daemon \
|
||||
--with-html-dir=${PREFIX}/share/doc \
|
||||
--with-libintl-prefix=${LOCALBASE}
|
||||
|
||||
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
||||
PLIST_SUB= DISTVERSION=${DISTVERSION}
|
||||
DOCSDIR= ${PREFIX}/share/doc/udisks2
|
||||
PORTDOCS= *
|
||||
|
||||
OPTIONS_DEFINE= UDISKSCTL NLS DOCS
|
||||
OPTIONS_DEFINE= UDISKSCTL NLS DOCS
|
||||
OPTIONS_DEFAULT= UDISKSCTL NLS DOCS
|
||||
OPTIONS_SUB= yes
|
||||
UDISKSCTL_DESC= Install udisksctl command line utility
|
||||
DOCS_CONFIGURE_ENABLE= gtk-doc
|
||||
NLS_USES= gettext-runtime
|
||||
NLS_CONFIGURE_ENABLE= nls
|
||||
UDISKSCTL_LIB_DEPENDS= libpolkit-agent-1.so:sysutils/polkit \
|
||||
libpolkit-gobject-1.so:sysutils/polkit
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
pre-configure:
|
||||
cd ${WRKSRC} && ${SETENV} NOCONFIGURE=1 ./autogen.sh
|
||||
UDISKSCTL_DESC= Install udisksctl command line utility
|
||||
|
||||
NLS_USES= gettext-runtime
|
||||
NLS_CONFIGURE_ENABLE= nls
|
||||
|
||||
UDISKSCTL_BUILD_DEPENDS= gtkdocize:textproc/gtk-doc \
|
||||
xsltproc:textproc/libxslt
|
||||
UDISKSCTL_LIB_DEPENDS= libpolkit-agent-1.so:sysutils/polkit \
|
||||
libpolkit-gobject-1.so:sysutils/polkit
|
||||
UDISKSCTL_CONFIGURE_ENABLE= man
|
||||
|
||||
post-install:
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libudisks2.so.0.0.0
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1665970803
|
||||
SHA256 (storaged-project-udisks-udisks-2.9.4_GH0.tar.gz) = 5917ad67f33648935748cb98f71668431ab07ce4dc4cfd5403e0c0a2af48696a
|
||||
SIZE (storaged-project-udisks-udisks-2.9.4_GH0.tar.gz) = 1464740
|
||||
TIMESTAMP = 1666434207
|
||||
SHA256 (udisks-2.9.4.tar.bz2) = b6b60ebab0d5e09624120c5d158882e87d8c2473db60783b63deeba74cb18d1c
|
||||
SIZE (udisks-2.9.4.tar.bz2) = 1699288
|
||||
|
@ -17,67 +17,6 @@ libdata/pkgconfig/udisks2.pc
|
||||
%%UDISKSCTL%%man/man1/udisksctl.1.gz
|
||||
%%UDISKSCTL%%share/bash-completion/completions/udisksctl
|
||||
share/gir-1.0/UDisks-2.0.gir
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/UDisksBlock.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/UDisksClient.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/UDisksDrive.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/UDisksDriveAta.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/UDisksEncrypted.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/UDisksFilesystem.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/UDisksJob.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/UDisksLoop.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/UDisksMDRaid.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/UDisksManager.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/UDisksObject.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/UDisksObjectInfo.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/UDisksObjectManagerClient.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/UDisksPartition.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/UDisksPartitionTable.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/UDisksSwapspace.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/annotation-glossary.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/api-index-%%PORTVERSION%%.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/api-index-deprecated.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/api-index.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/ch03.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/gdbus-org.freedesktop.UDisks2.Block.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/gdbus-org.freedesktop.UDisks2.Drive.Ata.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/gdbus-org.freedesktop.UDisks2.Drive.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/gdbus-org.freedesktop.UDisks2.Encrypted.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/gdbus-org.freedesktop.UDisks2.Filesystem.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/gdbus-org.freedesktop.UDisks2.Job.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/gdbus-org.freedesktop.UDisks2.Loop.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/gdbus-org.freedesktop.UDisks2.MDRaid.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/gdbus-org.freedesktop.UDisks2.Manager.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/gdbus-org.freedesktop.UDisks2.Partition.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/gdbus-org.freedesktop.UDisks2.PartitionTable.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/gdbus-org.freedesktop.UDisks2.Swapspace.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/gio-hierarchy.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/home.png
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/index.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/left-insensitive.png
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/left.png
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/mount_options.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/overview.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/ref-dbus-block-devices.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/ref-dbus-drives.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/ref-dbus-jobs.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/ref-dbus-manager-well-known-object.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/ref-dbus-md-raid.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/ref-dbus-overview.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/ref-dbus-udisks2-well-known-object.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/ref-dbus.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/ref-iscsi-session.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/ref-library-generated.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/ref-library.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/right-insensitive.png
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/right.png
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/style.css
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/udisks-polkit-actions.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/udisks-std-options.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/udisks2-UDisksError.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/udisks2.devhelp2
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/udisksctl.1.html
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/up-insensitive.png
|
||||
%%DOCS%%share/gtk-doc/html/udisks2/up.png
|
||||
%%NLS%%share/locale/af/LC_MESSAGES/udisks2.mo
|
||||
%%NLS%%share/locale/ar/LC_MESSAGES/udisks2.mo
|
||||
%%NLS%%share/locale/as/LC_MESSAGES/udisks2.mo
|
||||
|
Loading…
Reference in New Issue
Block a user