Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 185264 | Differences between
and this patch

Collapse All | Expand All

(-)/home/pva/overlays/gentoo-x86/eclass/font.eclass (+44 lines)
Lines 38-43 Link Here
38
# This is where the fonts are installed
38
# This is where the fonts are installed
39
FONTDIR=${FONTDIR:-/usr/share/fonts/${FONT_PN}}
39
FONTDIR=${FONTDIR:-/usr/share/fonts/${FONT_PN}}
40
40
41
# @ECLASS-VARIABLE: FONTDIR_ATTRIBUTES
42
# @DESCRIPTION:
43
# Font path element attributes, such as 'unscaled'. Also new 'pri'attribute is
44
# supported for ordering (lower pri - closer to top fondir will be). Users may
45
# override fontdir attributes defining ${PN//[-+]/_}_FONTDIR_ATTRIBUTES either
46
# on command line in /etc/make.conf. In case FONTDIR_ATTRIBUTES=none, symlink
47
# will not be created.
48
FONTDIR_ATTRIBUTES=${FONTDIR_ATTRIBUTES:-}
49
41
# @ECLASS-VARIABLE: FONT_CONF
50
# @ECLASS-VARIABLE: FONT_CONF
42
# @DESCRIPTION:
51
# @DESCRIPTION:
43
# Array, which element(s) is(are) path(s) of fontconfig-2.4 file(s) to install
52
# Array, which element(s) is(are) path(s) of fontconfig-2.4 file(s) to install
Lines 103-108 Link Here
103
	fi
112
	fi
104
}
113
}
105
114
115
# @FUNCTION: font_do_fontpath
116
# @USAGE: [fontdir]
117
# @DESCRIPTION:
118
# Create font catalogue symlinks.
119
font_do_fontpath() {
120
	if use X; then
121
		FONTDIR=${1:-${FONTDIR}}
122
123
		local FA
124
		eval FA="\$${PN//[-+]/_}_FONTDIR_ATTRIBUTES"
125
		[[ -n ${FA} ]] && FONTDIR_ATTRIBUTES=${FA}
126
127
		# Do not create symlink
128
		[[ ${FONTDIR_ATTRIBUTES} == none ]] && return
129
130
		if [[ -n ${FONTDIR_ATTRIBUTES} ]]; then
131
			FONTDIR=${FONTDIR}:${FONTDIR_ATTRIBUTES}
132
		else
133
			case ${FONTDIR##*/} in
134
				misc)
135
					FONTDIR="${FONTDIR}:unscaled:pri=10" ;;
136
				75dpi)
137
					FONTDIR="${FONTDIR}:unscaled:pri=20" ;;
138
				100dpi)
139
					FONTDIR="${FONTDIR}:unscaled:pri=30" ;;
140
				*)
141
					;;
142
			esac
143
		fi
144
145
		dosym "${FONTDIR%%:*}" "/etc/X11/fontpath.d/${FONTDIR##*/}"
146
	fi
147
}
148
106
#
149
#
107
# Public inheritable functions
150
# Public inheritable functions
108
#
151
#
Lines 126-131 Link Here
126
	font_xfont_config
169
	font_xfont_config
127
	font_xft_config
170
	font_xft_config
128
	font_fontconfig
171
	font_fontconfig
172
	font_do_fontpath
129
173
130
	cd "${S}"
174
	cd "${S}"
131
	dodoc ${DOCS} 2> /dev/null
175
	dodoc ${DOCS} 2> /dev/null

Return to bug 185264