Skip to content
Snippets Groups Projects
Unverified Commit a966d8c6 authored by Maxim Cournoyer's avatar Maxim Cournoyer
Browse files

scripts: Remove gentoo packaging scripts.

This is a follow up commit to 350f7a55, which removed the gentoo
packaging target due to it being unmaintained.

Change-Id: Ib6dbbdad4b88fd8ec9a8896e25b9ad4892b59737
parent b8f1e345
Branches
Tags
No related merge requests found
#!/usr/bin/env bash
#
# Copyright (C) 2016-2019 Savoir-faire Linux Inc.
#
# Author: Stefan Langenmaier <stefan.langenmaier@savoirfairelinux.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# This script is used in the packaging containers to build packages on
# rpm-based distros.
#
set -e
layman -f -a ring-overlay
cp /opt/ring-project-ro/${RELEASE_TARBALL_FILENAME} /usr/portage/distfiles
cd /var/lib/layman/ring-overlay && bash scripts/bump-ring-ebuilds.sh /usr/portage/distfiles/${RELEASE_TARBALL_FILENAME}
# problem with cirrcular deps
USE="-qt5" emerge -1 dev-util/cmake
emerge jami-gnome kde-ring
touch /opt/output/.packages-built
chown -R ${CURRENT_UID}:${CURRENT_UID} /opt/output
updatePkgs() {
chown -R ${CURRENT_UID}:${CURRENT_UID} /opt/output
}
[[ $EBUILD_PHASE == "postinst" || $EBUILD_PHASE == "clean" ]] && updatePkgs
# standard configuration to maximise portability
CFLAGS="-O2 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
USE="bindist -qt4 qt5"
CPU_FLAGS_X86="mmx mmxext sse sse2"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
# modification to ouput built packages to a non standard folder
PKGDIR="/opt/output/packages"
FEATURES="$FEATURES buildpkg"
EMERGE_DEFAULT_OPTS="${EMERGE_DEFAULT_OPTS} --usepkg"
# necessary for current layman version, should be removed with layman >2.0.0
# cannot be specified from the beginning because layman is not yet installed
#source /var/lib/layman/make.conf
# docker build
# not necessary when docker runs with PTRACE capability
dev-libs/gobject-introspection docker-build
app-text/poppler docker-build
dev-libs/crypto++ docker-build
dev-libs/libical docker-build
dev-libs/appstream-glib docker-build
net-libs/webkit-gtk docker-build
net-libs/gnome-online-accounts docker-build
sys-libs/ncurses docker-build
# build pkg
dev-libs/msgpack build-pkg
net-libs/libringclient build-pkg
net-libs/opendht build-pkg
net-voip/jami-gnome build-pkg
net-voip/kde-ring build-pkg
net-voip/ring-daemon build-pkg
# overlay
net-voip/jami-gnome ~amd64
=net-voip/kde-ring-99999999 **
net-libs/libringclient ~amd64
net-voip/ring-daemon ~amd64
dev-libs/msgpack ~amd64
net-libs/opendht ~amd64
# deps
dev-libs/crypto++ ~amd64
dev-libs/jsoncpp ~amd64
net-libs/libupnp ~amd64
media-libs/opus ~amd64
media-libs/libvpx ~amd64
dev-libs/dbus-c++ ~amd64
dev-libs/libpcre pcre16
sys-libs/zlib minizip
dev-libs/libdbusmenu-qt qt5
media-libs/phonon-gstreamer qt5
dev-qt/qtcore icu
media-libs/phonon-vlc qt5
sys-auth/polkit-qt qt5
media-libs/phonon qt5
# avoiding a cirrcular dep
media-libs/harfbuzz -graphite
dev-util/cmake -qt5
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment