You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
calculate-overlay/sys-apps/calculate/calculate-1.3.2.ebuild

76 lines
1.8 KiB

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DESCRIPTION="Program for installation, building and upgrading system"
HOMEPAGE="http://www.calculate-linux.org/Calculate"
SRC_URI="ftp://ftp.calculate.ru/pub/calculate/${PN}/${P}.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="x86 amd64"
IUSE=""
DEPEND="app-arch/bzip2
app-arch/cpio
app-arch/gzip
app-arch/p7zip
app-arch/tar
app-portage/layman
app-shells/bash
dev-lang/perl
dev-libs/openssl
app-cdr/cdrkit
net-misc/wget
sys-apps/file
sys-apps/findutils
sys-apps/grep
sys-apps/hal
sys-apps/module-init-tools
sys-apps/net-tools
sys-apps/pciutils
sys-apps/usbutils
sys-apps/util-linux
sys-apps/which
sys-boot/grub
sys-devel/gettext
sys-fs/udev"
RDEPEND="${DEPEND}"
need_repair_manconf=0
pkg_setup() {
[ -e /var/db/pkg/sys-apps/calculate-1.2.7* ] && need_repair_manconf=1
if [ -e /usr/calculate/install ] && \
[ `ls /usr/calculate/install | grep -c ""` -gt 0 ] && \
! [ -e /var/db/pkg/sys-apps/calculate-[0-9]* ];
then
eerror "Finding other copy of calculate in target directory"
eerror "Please, remove it, before continue installation."
eerror "\trm -rf /usr/calculate/install"
die "Cannot continue install. Remove previous calculate installation."
fi
}
src_install() {
emake install DESTDIR="${D}" || die "Calculate installation failed."
dodoc Change.log
}
pkg_postinst() {
if ! [ -e /usr/calculate/share/addition ];
then
mkdir -p /usr/calculate/share/addition
fi
if ! [ -e /usr/calculate/share/linux ];
then
mkdir -p /usr/calculate/share/linux
fi
if ! [ -e /usr/calculate/share/distfiles ];
then
mkdir -p -m 2775 /usr/calculate/share/distfiles
chgrp portage /usr/calculate/share/distfiles
fi
[[ $need_repair_manconf -eq 1 ]] && \
sed -ri 's#/usr/bin/python.*manrc \| ##' /etc/man.conf
}