1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Install documentation in standard location

- Add USES=libtool and bump dependent ports
- Use OPTIONS_SUB
This commit is contained in:
Tijl Coosemans 2014-07-01 19:38:35 +00:00
parent 4542c87746
commit 0167e3d083
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360090
4 changed files with 24 additions and 39 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= xfce4-mixer PORTNAME= xfce4-mixer
PORTVERSION= 4.11.0 PORTVERSION= 4.11.0
PORTREVISION= 1
CATEGORIES= audio xfce CATEGORIES= audio xfce
MASTER_SITES= ${MASTER_SITE_XFCE} MASTER_SITES= ${MASTER_SITE_XFCE}
MASTER_SITE_SUBDIR= src/apps/${PORTNAME}/${PORTVERSION:R} MASTER_SITE_SUBDIR= src/apps/${PORTNAME}/${PORTVERSION:R}

View File

@ -3,6 +3,7 @@
PORTNAME= xfce4-volumed PORTNAME= xfce4-volumed
PORTVERSION= 0.1.13 PORTVERSION= 0.1.13
PORTREVISION= 1
CATEGORIES= deskutils xfce CATEGORIES= deskutils xfce
MASTER_SITES= XFCE MASTER_SITES= XFCE
MASTER_SITE_SUBDIR= src/apps/${PORTNAME}/${PORTVERSION:R} MASTER_SITE_SUBDIR= src/apps/${PORTNAME}/${PORTVERSION:R}

View File

@ -2,7 +2,7 @@
PORTNAME= keybinder PORTNAME= keybinder
PORTVERSION= 0.3.0 PORTVERSION= 0.3.0
PORTREVISION= 2 PORTREVISION= 3
CATEGORIES= x11 CATEGORIES= x11
MASTER_SITES= GENTOO/distfiles MASTER_SITES= GENTOO/distfiles
@ -12,13 +12,15 @@ COMMENT= Library for registering keyboard shortcuts
LICENSE= GPLv2 LICENSE= GPLv2
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-html-dir=${PREFIX}/share/doc
USES= gmake libtool pathfix pkgconfig
USE_GNOME= gtk20 introspection:build USE_GNOME= gtk20 introspection:build
USE_XORG= x11 xext xrender USE_XORG= x11 xext xrender
USES= gmake pkgconfig pathfix
USE_LDCONFIG= yes USE_LDCONFIG= yes
OPTIONS_DEFINE= DOCS EXAMPLES PYTHON LUA OPTIONS_DEFINE= DOCS EXAMPLES PYTHON LUA
OPTIONS_DEFAULT= PYTHON OPTIONS_DEFAULT=PYTHON
OPTIONS_SUB= yes
# Override LUA description # Override LUA description
LUA_DESC= Lua bindings LUA_DESC= Lua bindings
@ -28,30 +30,15 @@ LUA_DESC= Lua bindings
.if ${PORT_OPTIONS:MPYTHON} .if ${PORT_OPTIONS:MPYTHON}
USE_PYTHON= 2 USE_PYTHON= 2
USE_GNOME+= pygtk2 USE_GNOME+= pygtk2
PLIST_SUB+= PYTHON=""
.else .else
CONFIGURE_ARGS+= --disable-python CONFIGURE_ARGS+= --disable-python
PLIST_SUB+= PYTHON="@comment "
.endif .endif
.if ${PORT_OPTIONS:MLUA} .if ${PORT_OPTIONS:MLUA}
USES+= lua:51 USES+= lua:51
CONFIGURE_ARGS+= --with-lua-includes=${LUA_INCDIR} CONFIGURE_ARGS+= --with-lua-includes=${LUA_INCDIR}
PLIST_SUB+= LUA=""
.else .else
CONFIGURE_ARGS+= --disable-lua CONFIGURE_ARGS+= --disable-lua
PLIST_SUB+= LUA="@comment "
.endif
.if ${PORT_OPTIONS:MDOCS}
BUILD_DEPENDS+= gtkdoc-check:${PORTSDIR}/textproc/gtk-doc
CONFIGURE_ARGS+=--enable-gtk-doc \
--with-html-dir=${PREFIX}/share/gtk-doc/html
PLIST_SUB+= DOCS=""
.else
CONFIGURE_ARGS+=--disable-gtk-doc-html \
--without-html-dir
PLIST_SUB+= DOCS="@comment "
.endif .endif
post-install: post-install:

View File

@ -1,16 +1,28 @@
include/keybinder.h include/keybinder.h
lib/girepository-1.0/Keybinder-0.0.typelib lib/girepository-1.0/Keybinder-0.0.typelib
lib/libkeybinder.la
lib/libkeybinder.so lib/libkeybinder.so
lib/libkeybinder.so.1 lib/libkeybinder.so.0
%%LUA%%%%LUA_MODLIBDIR%%/keybinder.la lib/libkeybinder.so.0.1.0
%%LUA%%%%LUA_MODLIBDIR%%/keybinder.so %%LUA%%%%LUA_MODLIBDIR%%/keybinder.so
%%PYTHON%%%%PYTHON_SITELIBDIR%%/keybinder/__init__.py %%PYTHON%%%%PYTHON_SITELIBDIR%%/keybinder/__init__.py
%%PYTHON%%%%PYTHON_SITELIBDIR%%/keybinder/__init__.pyc %%PYTHON%%%%PYTHON_SITELIBDIR%%/keybinder/__init__.pyc
%%PYTHON%%%%PYTHON_SITELIBDIR%%/keybinder/__init__.pyo %%PYTHON%%%%PYTHON_SITELIBDIR%%/keybinder/__init__.pyo
%%PYTHON%%%%PYTHON_SITELIBDIR%%/keybinder/_keybinder.la
%%PYTHON%%%%PYTHON_SITELIBDIR%%/keybinder/_keybinder.so %%PYTHON%%%%PYTHON_SITELIBDIR%%/keybinder/_keybinder.so
libdata/pkgconfig/keybinder.pc libdata/pkgconfig/keybinder.pc
%%PORTDOCS%%%%DOCSDIR%%/annotation-glossary.html
%%PORTDOCS%%%%DOCSDIR%%/api-index-full.html
%%PORTDOCS%%%%DOCSDIR%%/ch01.html
%%PORTDOCS%%%%DOCSDIR%%/deprecated-api-index.html
%%PORTDOCS%%%%DOCSDIR%%/home.png
%%PORTDOCS%%%%DOCSDIR%%/index.html
%%PORTDOCS%%%%DOCSDIR%%/index.sgml
%%PORTDOCS%%%%DOCSDIR%%/keybinder-keybinder.html
%%PORTDOCS%%%%DOCSDIR%%/keybinder.devhelp2
%%PORTDOCS%%%%DOCSDIR%%/left.png
%%PORTDOCS%%%%DOCSDIR%%/object-tree.html
%%PORTDOCS%%%%DOCSDIR%%/right.png
%%PORTDOCS%%%%DOCSDIR%%/style.css
%%PORTDOCS%%%%DOCSDIR%%/up.png
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Makefile %%PORTEXAMPLES%%%%EXAMPLESDIR%%/Makefile
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/README %%PORTEXAMPLES%%%%EXAMPLESDIR%%/README
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.lua %%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.lua
@ -21,24 +33,8 @@ libdata/pkgconfig/keybinder.pc
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/main.c %%PORTEXAMPLES%%%%EXAMPLESDIR%%/main.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/vexample.vala %%PORTEXAMPLES%%%%EXAMPLESDIR%%/vexample.vala
share/gir-1.0/Keybinder-0.0.gir share/gir-1.0/Keybinder-0.0.gir
%%DOCS%%share/gtk-doc/html/keybinder/annotation-glossary.html
%%DOCS%%share/gtk-doc/html/keybinder/api-index-full.html
%%DOCS%%share/gtk-doc/html/keybinder/ch01.html
%%DOCS%%share/gtk-doc/html/keybinder/deprecated-api-index.html
%%DOCS%%share/gtk-doc/html/keybinder/home.png
%%DOCS%%share/gtk-doc/html/keybinder/index.html
%%DOCS%%share/gtk-doc/html/keybinder/index.sgml
%%DOCS%%share/gtk-doc/html/keybinder/keybinder-keybinder.html
%%DOCS%%share/gtk-doc/html/keybinder/keybinder.devhelp2
%%DOCS%%share/gtk-doc/html/keybinder/left.png
%%DOCS%%share/gtk-doc/html/keybinder/object-tree.html
%%DOCS%%share/gtk-doc/html/keybinder/right.png
%%DOCS%%share/gtk-doc/html/keybinder/style.css
%%DOCS%%share/gtk-doc/html/keybinder/up.png
%%DOCS%%@dirrm share/gtk-doc/html/keybinder
%%DOCS%%@dirrmtry share/gtk-doc/html
%%DOCS%%@dirrmtry share/gtk-doc
@dirrmtry share/gir-1.0 @dirrmtry share/gir-1.0
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%
%%PYTHON%%@dirrm %%PYTHON_SITELIBDIR%%/keybinder %%PYTHON%%@dirrm %%PYTHON_SITELIBDIR%%/keybinder
@dirrmtry lib/girepository-1.0 @dirrmtry lib/girepository-1.0