aboutsummaryrefslogtreecommitdiffstats
path: root/science
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2014-08-04 11:40:14 +0800
committeradamw <adamw@FreeBSD.org>2014-08-04 11:40:14 +0800
commit4eda3a9e794c7b1834eede06f4e71fe345c791d6 (patch)
tree813aa84d1ad8bd3cfafe0793f530eff6e9c6194c /science
parent0eff41e7b9a36ea4031df2f12affda98bd0b9e61 (diff)
downloadfreebsd-ports-gnome-4eda3a9e794c7b1834eede06f4e71fe345c791d6.tar.gz
freebsd-ports-gnome-4eda3a9e794c7b1834eede06f4e71fe345c791d6.tar.zst
freebsd-ports-gnome-4eda3a9e794c7b1834eede06f4e71fe345c791d6.zip
In some straightforward cases, protect documentation behind
PORTDOCS, adding a DOCS option where needed, and a couple PORTEXAMPLES for good measure.
Diffstat (limited to 'science')
-rw-r--r--science/svmlight/Makefile2
-rw-r--r--science/svmlight/pkg-plist4
2 files changed, 4 insertions, 2 deletions
diff --git a/science/svmlight/Makefile b/science/svmlight/Makefile
index c1b5a713d5b7..3010f303b59c 100644
--- a/science/svmlight/Makefile
+++ b/science/svmlight/Makefile
@@ -23,6 +23,8 @@ USES= gmake
USE_LDCONFIG= yes
PKGMESSAGE= ${WRKSRC}/LICENSE.txt
+OPTIONS_DEFINE= DOCS
+
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/include/svmlight
${INSTALL_DATA} ${WRKSRC}/*.h ${STAGEDIR}${PREFIX}/include/svmlight
diff --git a/science/svmlight/pkg-plist b/science/svmlight/pkg-plist
index f632c2429740..2b5315213d8e 100644
--- a/science/svmlight/pkg-plist
+++ b/science/svmlight/pkg-plist
@@ -6,6 +6,6 @@ include/svmlight/svm_learn.h
lib/libsvmlight.a
lib/libsvmlight.so
lib/libsvmlight.so.1
-%%DOCSDIR%%/LICENSE.txt
-@dirrm %%DOCSDIR%%
+%%PORTDOCS%%%%DOCSDIR%%/LICENSE.txt
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm include/svmlight