1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# Created by: Nicola Vitale <nivit@email.it>
# $FreeBSD$
PORTNAME= themes
PORTVERSION= 1.2
PORTREVISION= 4
CATEGORIES= www
MASTER_SITES= http://www.eyelook.org/themes/ CSME/myports/${DIST_SUBDIR}
PKGNAMEPREFIX= eyeOS-
DISTFILES= ${EYETHEMES:S/$/.zip/}
DIST_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
MAINTAINER= nivit@FreeBSD.org
COMMENT= A themes collection for eyeOS
NO_BUILD= yes
NO_WRKSUBDIR= yes
USES= zip
EYEDIR?= ${PREFIX}/www/eyeOS
THEMESDIR= ${EYEDIR}/system/themes
OPTIONS_DEFINE= Crystal_THEME Executive_THEME Kids_THEME LateBloomer_THEME \
Mac_THEME Mini_THEME NuoveXT_THEME Nuvola_THEME WaterSide_THEME \
eyeOSVista_THEME animus_THEME minimal_THEME
OPTIONS_DEFAULT:= ${OPTIONS_DEFINE:M*_THEME}
Crystal_THEME_DESC= based on the Crystal Open Source icons
Executive_THEME_DESC= designed specially for Companies
Kids_THEME_DESC= designed specially for Kids and Schools
LateBloomer_THEME_DESC= based on the Crystal theme
Mac_THEME_DESC= based on OSX 2.1 Open Source icons
Mini_THEME_DESC= with mall icons based on Nuvola icon set
NuoveXT_THEME_DESC= based on 'NuoveXT' Open Source icons
Nuvola_THEME_DESC= nspired in the great icons Nuvola
WaterSide_THEME_DESC= inspired in countryside of Saskatchewan
fromX_THEME_DESC= based on Tango Icons
eyeOSVista_THEME_DESC= based on the new Vista style
animus_THEME_DESC= created by AnimusMedia.com
minimal_THEME_DESC= based on minimalist art
NO_STAGE= yes
.include <bsd.port.pre.mk>
.for theme in ${OPTIONS_DEFINE:M*_THEME:S/_THEME//}
.if ${PORT_OPTIONS:M${theme}_THEME}
EYETHEMES+= ${theme}
PLIST_SUB+= ${theme:tu}=${THEMESDIR:S,^${PREFIX}/,,}/${theme}
PLIST_SUB+= D${theme:tu}="@dirrm ${THEMESDIR:S,^${PREFIX}/,,}/${theme}"
.else
PLIST_SUB+= ${theme:tu}="@comment "
PLIST_SUB+= D${theme:tu}="@comment "
.endif
.endfor
PLIST_SUB+= EYEDIR=${EYEDIR:S,^${PREFIX}/,,}
post-extract:
@${FIND} ${WRKSRC} -name \*~ -delete
do-install:
${INSTALL} -d ${THEMESDIR}/
${CP} -Rp ${EYETHEMES:S,^,${WRKDIR}/,} ${THEMESDIR}/
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${THEMESDIR}
${CHMOD} -R go-w ${THEMESDIR}
${ECHO_CMD} @exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} %D/${THEMESDIR:S,^${PREFIX}/,,} >> ${TMPPLIST}
${ECHO_CMD} @exec ${CHMOD} -R go-w %D/${THEMESDIR:S,^${PREFIX}/,,} >> ${TMPPLIST}
# Maintainer section
create-plist: build
:>${PLIST}
.for theme in ${OPTIONS:M*_THEME:S/_THEME//:O}
${FIND} -s ${WRKSRC}/${theme} -type f -or -type l | \
${SED} -e 's#^${WRKSRC}/${theme}#%%${theme:tu}%%#' >> ${PLIST}
.endfor
.for theme in ${OPTIONS:M*_THEME:S/_THEME//:O}
${FIND} -ds ${WRKSRC}/${theme} -type d | \
${SED} -e 's#^${WRKSRC}/${theme}#%%D${theme:tu}%%#' >> ${PLIST}
.endfor
${ECHO_CMD} @dirrmtry %%EYEDIR%%/system/themes >> ${PLIST}
${ECHO_CMD} @dirrmtry %%EYEDIR%%/system >> ${PLIST}
${ECHO_CMD} @dirrmtry %%EYEDIR%% >> ${PLIST}
.include <bsd.port.post.mk>
|