tabs->4spaces. deps-sorting. pax: gcc->$CC

for/master
Denis Knauf 2013-03-09 15:32:00 +01:00
parent eb02dc0370
commit ff1e779c20
6 changed files with 39 additions and 38 deletions

View File

@ -1,4 +1,4 @@
summary=local
summary=DenKn: exhereses
homepage=https://github.com/DenisKnauf/exherbo-denkn
owner=Denis Knauf <Denis.Knauf@gmail.com>
status=third-party

View File

@ -12,14 +12,14 @@ PLATFORMS="~amd64 ~x86"
DEPENDENCIES=""
src_compile() {
# Makefile says:
# # -DLONG_OFF_T The base type of off_t is a long, not a long long.
# # This is often defined in: /usr/include/sys/types.h
edo gcc -DLONG_OFF_T ${CFLAGS} ${LDFLAGS} -o pax *.c
# Makefile says:
# # -DLONG_OFF_T The base type of off_t is a long, not a long long.
# # This is often defined in: /usr/include/sys/types.h
edo $CC -DLONG_OFF_T ${CFLAGS} ${LDFLAGS} -o pax *.c
}
src_install() {
dobin pax
doman pax.1
emagicdocs
dobin pax
doman pax.1
emagicdocs
}

View File

@ -13,8 +13,8 @@ MYOPTIONS=""
DEPENDENCIES="
run:
sys-apps/paludis
dev-lang/ruby[>=1.9]
sys-apps/paludis
"
src_install() {

View File

@ -15,11 +15,11 @@ MYOPTIONS=""
WORK=${WORKBASE}/${AN}
src_configure() {
env
econf --libdir="/usr/${LIBDIR}"
env
econf --libdir="/usr/${LIBDIR}"
}
src_install() {
keepdir /usr/${LIBDIR}/swipl-${PV}/library/dialect/ifprolog
default
keepdir /usr/${LIBDIR}/swipl-${PV}/library/dialect/ifprolog
default
}

View File

@ -10,9 +10,9 @@ SLOT="0"
LICENCES="GPL-2"
PLATFORMS="~amd64 ~x86"
DEPENDENCIES="
group/tinyproxy
user/tinyproxy
app-doc/asciidoc
app-doc/asciidoc
group/tinyproxy
user/tinyproxy
"
# PID-file will be created in /var/run, but /var/run is a link to /run.
# in future, tinyproxy needs an other config, that it uses /run.
@ -21,33 +21,33 @@ DEFAULT_SRC_CONFIGURE_PARAMS="--localstatedir=/var"
MYOPTIONS="systemd"
src_prepare() {
c="etc/tinyproxy.conf.in"
b="${c}.bk"
if option systemd
then
sed -e 's,^#PidFile.*,&\
c="etc/tinyproxy.conf.in"
b="${c}.bk"
if option systemd
then
sed -e 's,^#PidFile.*,&\
#\
# systemd wants all pidfiles in /run.\
# Do not change the following line:\
PidFile "/run/tinyproxy/tinyproxy.pid",'
else
cat
fi < "${c}" > "${b}"
sed \
-e 's/^User nobody/User tinyproxy/' \
-e 's/^Group nobody/Group tinyproxy/' \
< "${b}" > "${c}"
else
cat
fi < "${c}" > "${b}"
sed \
-e 's/^User nobody/User tinyproxy/' \
-e 's/^Group nobody/Group tinyproxy/' \
< "${b}" > "${c}"
}
src_install() {
default
keepdir /var/log/tinyproxy
if option systemd
then
install_systemd_files
insinto /usr/${LIBDIR}/tmpfiles.d
hereins tinyproxy.conf <<EOF
default
keepdir /var/log/tinyproxy
if option systemd
then
install_systemd_files
insinto /usr/${LIBDIR}/tmpfiles.d
hereins tinyproxy.conf <<EOF
d /run/tinyproxy 0770 tinyproxy tinyproxy
EOF
fi
fi
}

View File

@ -9,7 +9,8 @@ LICENCES="GPL-2"
PLATFORMS="~amd64 ~x86"
MYOPTIONS=""
DEPENDENCIES="
build+run:
sys-fs/xfsprogs
build+run:
sys-fs/xfsprogs
"
DEFAULT_SRC_INSTALL_PARAMS+=( DIST_ROOT="${IMAGE}" )