parent
1d8b588434
commit
d79f34182d
Binary file not shown.
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST espeakup-0.80.tar.gz 39626 BLAKE2B f36d9776b954e73fd2bc33c7ba97dd323184480549b667ac2afc4dc40a8b98089b8ced16e8b1cb33e6b4c586df27a8d6f782236ef8770bc98a530665e257edcf SHA512 1b7e2bd46c3c13a5305746d2d2810ec94a8660f561e4f679ee4779be1b22178f8ac7de42d626d649710509f7b087b9a2f94608bde203d1bcd6d353229ed9ff83
|
||||
DIST espeakup-0.90.tar.gz 25170 BLAKE2B f91a70bad0d985d313852b9e5f72dea4330ab23050ca6904ae5895d513088031f34d878cd64d97dcf2cf02dddc3e9fdabd0826cac98634829019ed3267e27bd8 SHA512 0731835a04063c5eac8ed0ed37cd92cc5d2dd1c58cbd94e158b7dfbb7bc0e2f84a6484fffd9009bf2920652a36fb737044b2e1fb67fb1679ee7150855bc9a15e
|
||||
|
@ -1,62 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="https://github.com/williamh/espeakup.git"
|
||||
inherit git-r3
|
||||
else
|
||||
EGIT_COMMIT=v${PV}
|
||||
SRC_URI="https://github.com/williamh/espeakup/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="amd64 x86"
|
||||
inherit vcs-snapshot
|
||||
fi
|
||||
|
||||
inherit linux-info
|
||||
|
||||
DESCRIPTION="espeakup is a small lightweight connector for espeak and speakup"
|
||||
HOMEPAGE="https://github.com/williamh/espeakup"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEPEND="|| (
|
||||
app-accessibility/espeak[portaudio]
|
||||
app-accessibility/espeak[pulseaudio] )"
|
||||
DEPEND="${COMMON_DEPEND}"
|
||||
RDEPEND="${COMMON_DEPEND}"
|
||||
|
||||
CONFIG_CHECK="~SPEAKUP ~SPEAKUP_SYNTH_SOFT"
|
||||
ERROR_SPEAKUP="CONFIG_SPEAKUP is not enabled in this kernel!"
|
||||
ERROR_SPEAKUP_SYNTH_SOFT="CONFIG_SPEAKUP_SYNTH_SOFT is not enabled in this kernel!"
|
||||
|
||||
pkg_setup() {
|
||||
if kernel_is -ge 2 6 37; then
|
||||
check_extra_config
|
||||
elif ! has_version app-accessibility/speakup; then
|
||||
ewarn "Cannot find speakup on your system."
|
||||
ewarn "Please upgrade your kernel to 2.6.37 or later and enable the"
|
||||
ewarn "CONFIG_SPEAKUP and CONFIG_SPEAKUP_SYNTH_SOFT options"
|
||||
ewarn "or install app-accessibility/speakup."
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" PREFIX=/usr install
|
||||
einstalldocs
|
||||
newconfd "${FILESDIR}"/espeakup.confd espeakup
|
||||
newinitd "${FILESDIR}"/espeakup.rc espeakup
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "To get espeakup to start automatically, it is currently recommended"
|
||||
elog "that you add it to the default run level, by giving the following"
|
||||
elog "command as root."
|
||||
elog
|
||||
elog "rc-update add espeakup default"
|
||||
elog
|
||||
elog "You can also set a default voice now for espeakup."
|
||||
elog "See /etc/conf.d/espeakup for how to do this."
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
command=/usr/bin/espeakup
|
||||
command_args="${espeakup_opts:-${ESPEAKUP_OPTS}}"
|
||||
pidfile=/run/espeakup.pid
|
||||
|
||||
depend() {
|
||||
after modules
|
||||
use alsasound pulseaudio
|
||||
}
|
Binary file not shown.
@ -1,140 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
USE_RUBY="ruby25 ruby26 ruby27"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC="doc:all"
|
||||
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="locales"
|
||||
|
||||
inherit ruby-fakegem systemd tmpfiles
|
||||
|
||||
DESCRIPTION="A system automation and configuration management software"
|
||||
HOMEPAGE="https://puppet.com/"
|
||||
SRC_URI="https://downloads.puppetlabs.com/puppet/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ~hppa ~ppc ~ppc64 x86"
|
||||
IUSE="augeas diff doc emacs ldap rrdtool selinux shadow sqlite vim-syntax"
|
||||
RESTRICT="test"
|
||||
|
||||
ruby_add_rdepend "
|
||||
>=dev-ruby/hiera-3.2.1:0
|
||||
=dev-ruby/facter-3*
|
||||
>=dev-ruby/fast_gettext-1.1.2:0
|
||||
>=dev-ruby/locale-2.1:0
|
||||
>=dev-ruby/multi_json-1.10:0
|
||||
augeas? ( dev-ruby/ruby-augeas )
|
||||
diff? ( dev-ruby/diff-lcs )
|
||||
doc? ( dev-ruby/rdoc )
|
||||
ldap? ( dev-ruby/ruby-ldap )
|
||||
shadow? ( dev-ruby/ruby-shadow )
|
||||
sqlite? ( dev-ruby/sqlite3 )
|
||||
virtual/ruby-ssl
|
||||
dev-ruby/hocon"
|
||||
|
||||
ruby_add_bdepend "
|
||||
doc? ( dev-ruby/yard )
|
||||
test? (
|
||||
dev-ruby/mocha
|
||||
dev-ruby/rack
|
||||
dev-ruby/rspec-its
|
||||
)"
|
||||
# this should go in the above lists, but isn't because of test deps not being keyworded
|
||||
# dev-ruby/rspec-collection_matchers
|
||||
|
||||
RDEPEND+=" ${RDEPEND}
|
||||
rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] )
|
||||
selinux? (
|
||||
sys-libs/libselinux[ruby]
|
||||
sec-policy/selinux-puppet
|
||||
)
|
||||
vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 )
|
||||
>=app-portage/eix-0.18.0
|
||||
acct-user/puppet
|
||||
acct-group/puppet"
|
||||
PDEPEND="emacs? ( >=app-emacs/puppet-mode-0.3-r1 )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Avoid spec that require unpackaged json-schema.
|
||||
rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die
|
||||
|
||||
# fix systemd path
|
||||
eapply -p0 "${FILESDIR}/puppet-systemd.patch"
|
||||
|
||||
# Avoid specs that can only run in the puppet.git repository. This
|
||||
# should be narrowed down to the specific specs.
|
||||
rm spec/integration/parser/compiler_spec.rb || die
|
||||
|
||||
# Avoid failing spec that need further investigation.
|
||||
rm spec/unit/module_tool/metadata_spec.rb || die
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
each_fakegem_install
|
||||
# dosym "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${P}" "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${PN}"
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
# systemd stuffs
|
||||
systemd_dounit "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
|
||||
|
||||
# tmpfiles stuff
|
||||
newtmpfiles "${FILESDIR}/tmpfiles.d" "puppet.conf"
|
||||
|
||||
# openrc init stuff
|
||||
newinitd "${FILESDIR}"/puppet.init-4.x puppet
|
||||
newinitd "${FILESDIR}"/puppetmaster.init-4.x puppetmaster
|
||||
newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster
|
||||
|
||||
keepdir /etc/puppetlabs/puppet/ssl
|
||||
|
||||
keepdir /var/lib/puppet/facts
|
||||
keepdir /var/lib/puppet/files
|
||||
fowners -R puppet:puppet /var/lib/puppet
|
||||
|
||||
fperms 0750 /var/lib/puppet
|
||||
|
||||
fperms 0750 /etc/puppetlabs
|
||||
fperms 0750 /etc/puppetlabs/puppet
|
||||
fperms 0750 /etc/puppetlabs/puppet/ssl
|
||||
fowners -R :puppet /etc/puppetlabs
|
||||
fowners -R :puppet /var/lib/puppet
|
||||
|
||||
if use ldap ; then
|
||||
insinto /etc/openldap/schema; doins ext/ldap/puppet.schema
|
||||
fi
|
||||
|
||||
# ext and examples files
|
||||
for f in $(find ext examples -type f) ; do
|
||||
docinto "$(dirname ${f})"; dodoc "${f}"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process puppet.conf
|
||||
|
||||
elog
|
||||
elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could"
|
||||
elog "cause puppet to hang while installing packages."
|
||||
elog
|
||||
elog "Portage Puppet module with Gentoo-specific resources:"
|
||||
elog "http://forge.puppetlabs.com/gentoo/portage"
|
||||
elog
|
||||
|
||||
for v in ${REPLACING_VERSIONS}; do
|
||||
if [ "$(ver_cut 1 "$v")" -eq "4" ]; then
|
||||
elog
|
||||
elog "Please see the following url for the release notes for puppet-5"
|
||||
elog "https://docs.puppet.com/puppet/5.0/release_notes.html#if-youre-upgrading-from-puppet-4x"
|
||||
elog
|
||||
fi
|
||||
done
|
||||
}
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST lz4-1.9.3.tar.gz 320958 BLAKE2B 9a194bd18ff52f780aa03a8a53fe7fab7b58117d768f4ba8e5005830c935d16328d0f7cc54f9413b58faf245017c0ac85fb4e709a9db150cb150a0a2a3c21645 SHA512 c246b0bda881ee9399fa1be490fa39f43b291bb1d9db72dba8a85db1a50aad416a97e9b300eee3d2a4203c2bd88bda2762e81bc229c3aa409ad217eb306a454c
|
||||
DIST lz4-1.9.4.tar.gz 354063 BLAKE2B 2289cdce36acd35283bf2f02ef4d6d8f4805563be6d5a3492f3d6ea7975fb6bd14e1ac2e505df9747776edf8bcf0da7ba4ae7084b150e3ec08a52a9885f92ad5 SHA512 043a9acb2417624019d73db140d83b80f1d7c43a6fd5be839193d68df8fd0b3f610d7ed4d628c2a9184f7cde9a0fd1ba9d075d8251298e3eb4b3a77f52736684
|
||||
|
@ -0,0 +1,26 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake-multilib
|
||||
|
||||
DESCRIPTION="Extremely Fast Compression algorithm"
|
||||
HOMEPAGE="https://github.com/lz4/lz4"
|
||||
SRC_URI="https://github.com/lz4/lz4/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2 GPL-2"
|
||||
# https://abi-laboratory.pro/tracker/timeline/lz4/
|
||||
SLOT="0/r132"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="static-libs"
|
||||
|
||||
CMAKE_USE_DIR=${S}/build/cmake
|
||||
|
||||
multilib_src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DBUILD_STATIC_LIBS=$(usex static-libs)
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST xarchiver-0.5.4.18.tar.gz 1112838 BLAKE2B baeab65c9f81eecf070185fb3718b3e8a460e94393dfcdf38ad8bfb2a771c6f98a8638a28c43aa99d05a95772ca7e1546d9be1b602e22a715d5827350976f9d8 SHA512 a33236839d325a2d706fd0a9e2257ab5289895b030450b2060da856c047e5676ac5686312f8d00d3f38d329d0cf39fb22330a7c902b3ff5943856801435f6970
|
||||
DIST xarchiver-0.5.4.19.tar.gz 1120885 BLAKE2B 4b8b9e188b16b799f33a1816a5f19a0f67720369282239e3a22af8588b9776ee37dbc63cb1b42a426c515a360aeb1abda84b22e783bd8e4e3578eb2f2fb66ab6 SHA512 f35846bcb1236957d4201980eb1c9e49e16472ab2316935c9f8c94a9b4c3c2da879cd2730c3413041098042251607432f6af1cbacadd97b81efb81180fa5ee6a
|
||||
|
@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit xdg-utils
|
||||
|
||||
DESCRIPTION="A GTK+ archive manager that can be used with Thunar"
|
||||
HOMEPAGE="https://github.com/ib/xarchiver/"
|
||||
SRC_URI="
|
||||
https://github.com/ib/xarchiver/archive/${PV}.tar.gz -> ${P}.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="doc"
|
||||
|
||||
DEPEND="
|
||||
>=dev-libs/glib-2:=
|
||||
x11-libs/gtk+:3=
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
"
|
||||
BDEPEND="
|
||||
dev-util/intltool
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
doc? (
|
||||
app-text/docbook-xml-dtd
|
||||
app-text/docbook-xsl-stylesheets
|
||||
dev-libs/libxml2
|
||||
dev-libs/libxslt
|
||||
)
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
$(use_enable doc)
|
||||
)
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
|
||||
elog "You need external programs for some formats, including:"
|
||||
elog "7zip - app-arch/p7zip"
|
||||
elog "arj - app-arch/arj"
|
||||
elog "lha - app-arch/lha"
|
||||
elog "lzop - app-arch/lzop"
|
||||
elog "rar - app-arch/unrar app-arch/rar"
|
||||
elog "zip - app-arch/unzip app-arch/zip"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST aspell-da-4.0.tar.gz 4208911 BLAKE2B 828176450a1d6e5e2e9b07d16c785239a012fc8382d92fcddf6dec812abbf49048b2f1c15de6655e09d74d2f65cd1a43939b3bee8f036ccfdd441f66b5ea259e SHA512 bbc0c4cc0202f989770d84ac9b5ff688b4c8bf0fef7128c36e54c7e4d09e8233eeee986def9a5d75c05d2599eaf96db4be212f6dc758bd23f723f611bf545ba5
|
||||
DIST aspell-da-4.1.tar.gz 4239148 BLAKE2B 21c30ec4576b73964d434217eb0212bc2e15774b42d7b4cbc9be37ae97eef42eb66821e22690b2b1d72c91d0240f2152acd1383038426ab65c030bc7f74379f1 SHA512 88a3a60db9be45f3235d75db0f946a5d7da0c2cfcf847ad2672c7b0e243454dce56f5f37d0652c6f2b9aeb08edbbefb80c4f45c909e5ba33aec2714f83fac7c3
|
||||
|
@ -0,0 +1,15 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
ASPELL_LANG="Danish"
|
||||
|
||||
inherit aspell-dict-r1
|
||||
|
||||
HOMEPAGE="https://github.com/mortenivar/aspell-da"
|
||||
SRC_URI="https://github.com/mortenivar/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${P}"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-macos"
|
Binary file not shown.
@ -0,0 +1,139 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
PYTHON_REQ_USE="xml(+)"
|
||||
|
||||
inherit cmake flag-o-matic llvm python-any-r1
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/doxygen/doxygen.git"
|
||||
else
|
||||
SRC_URI="https://doxygen.nl/files/${P}.src.tar.gz"
|
||||
SRC_URI+=" mirror://sourceforge/doxygen/rel-${PV}/${P}.src.tar.gz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Documentation system for most programming languages"
|
||||
HOMEPAGE="http://www.doxygen.org"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="clang debug doc dot doxysearch qt5 sqlite test"
|
||||
# We need TeX for tests, bug #765472
|
||||
# We keep the odd construct of noop USE=test because of
|
||||
# the special relationship b/t RESTRICT & USE for tests. Also, it's a hint
|
||||
# which avoids tests being silently skipped during arch testing.t
|
||||
REQUIRED_USE="test? ( doc )"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="sys-devel/bison
|
||||
sys-devel/flex
|
||||
${PYTHON_DEPS}
|
||||
"
|
||||
RDEPEND="app-text/ghostscript-gpl
|
||||
dev-lang/perl
|
||||
media-libs/libpng:0=
|
||||
virtual/libiconv
|
||||
clang? ( >=sys-devel/clang-10:= )
|
||||
dot? (
|
||||
media-gfx/graphviz
|
||||
media-libs/freetype
|
||||
)
|
||||
doc? (
|
||||
dev-texlive/texlive-bibtexextra
|
||||
dev-texlive/texlive-fontsextra
|
||||
dev-texlive/texlive-fontutils
|
||||
dev-texlive/texlive-latex
|
||||
dev-texlive/texlive-latexextra
|
||||
dev-texlive/texlive-plaingeneric
|
||||
)
|
||||
doxysearch? ( dev-libs/xapian:= )
|
||||
qt5? (
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5
|
||||
dev-qt/qtxml:5
|
||||
)
|
||||
sqlite? ( dev-db/sqlite:3 )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.9.4-link_with_pthread.patch"
|
||||
"${FILESDIR}/${PN}-1.9.1-ignore-bad-encoding.patch"
|
||||
"${FILESDIR}/${PN}-1.9.1-do_not_force_libcxx.patch"
|
||||
)
|
||||
|
||||
DOCS=( LANGUAGE.HOWTO README.md )
|
||||
|
||||
pkg_setup() {
|
||||
use clang && llvm_pkg_setup
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
# Call dot with -Teps instead of -Tps for EPS generation - bug #282150
|
||||
sed -i -e '/addJob("ps"/ s/"ps"/"eps"/g' src/dot.cpp || die
|
||||
|
||||
# fix pdf doc
|
||||
sed -i.orig -e "s:g_kowal:g kowal:" \
|
||||
doc/maintainers.txt || die
|
||||
|
||||
if is-flagq "-O3" ; then
|
||||
ewarn
|
||||
ewarn "Compiling with -O3 is known to produce incorrectly"
|
||||
ewarn "optimized code which breaks doxygen."
|
||||
ewarn
|
||||
elog
|
||||
elog "Continuing with -O2 instead ..."
|
||||
elog
|
||||
replace-flags "-O3" "-O2"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# -Wodr warnings, see bug #854357 and https://github.com/doxygen/doxygen/issues/9287
|
||||
filter-lto
|
||||
|
||||
local mycmakeargs=(
|
||||
-Duse_libclang=$(usex clang)
|
||||
-Dbuild_doc=$(usex doc)
|
||||
-Dbuild_search=$(usex doxysearch)
|
||||
-Dbuild_wizard=$(usex qt5)
|
||||
-Duse_sqlite3=$(usex sqlite)
|
||||
-DGIT_EXECUTABLE="false"
|
||||
)
|
||||
|
||||
use doc && mycmakeargs+=(
|
||||
-DDOC_INSTALL_DIR="share/doc/${P}"
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake_src_compile
|
||||
|
||||
if use doc; then
|
||||
export VARTEXFONTS="${T}/fonts" # bug #564944
|
||||
|
||||
if ! use dot; then
|
||||
sed -i -e "s/HAVE_DOT = YES/HAVE_DOT = NO/" \
|
||||
{Doxyfile,doc/Doxyfile} \
|
||||
|| die "disabling dot failed"
|
||||
fi
|
||||
|
||||
# -j1 for bug #770070
|
||||
cmake_src_compile docs -j1
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
doman doc/*.1
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST ddcui-0.2.1.tar.gz 601220 BLAKE2B 18af4ee4db741a612565260ed812f7274695472e9dc6e32c6670efcbdaeafcac9b0b45e44d02188d23e0f379f57b062270ecad58bdcfa8e8c2bf99c2775b1dfe SHA512 0df363dbf17750e3920e0afc5fc29b42271bbf06dcf52cddf46f3660155c0954ee39e8e356e9caebe1a6a679ab0b3a4ebb2e501a9bb9ac2cd47da3f522fb3169
|
||||
DIST ddcui-0.3.0.tar.gz 601534 BLAKE2B d91d7467879c684cbb8571da48dfd170afa60d63832b44515d6d19187792f6c3c2c178e907ad8693cdba8df44b448eb4393a91e4439dcda13ac096ad6e97a594 SHA512 fab1ea757aad90fa68d2f6f5c128d7917e81f287a0a9e432461c7b2119c3f0d9da0e28a013510d1b0cb300b40c3f4dd745f3e1732c52f671c4d6e39b3ef0c368
|
||||
|
@ -0,0 +1,33 @@
|
||||
# Copyright 2019-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# Check for bumps & cleanup with app-misc/ddcutil
|
||||
|
||||
inherit cmake xdg
|
||||
|
||||
DESCRIPTION="Graphical user interface for ddcutil - control monitor settings"
|
||||
HOMEPAGE="https://www.ddcutil.com/ddcui_main/"
|
||||
SRC_URI="https://github.com/rockowitz/ddcui/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
|
||||
DEPEND="
|
||||
dev-libs/glib
|
||||
>=app-misc/ddcutil-1.3.0:0/4
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qthelp:5
|
||||
dev-qt/qtwidgets:5
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
# move docs to correct dir
|
||||
sed -i -e "s%share/doc/ddcui%share/doc/${PF}%g" CMakeLists.txt || die
|
||||
cmake_src_prepare
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST ddcutil-1.2.2.tar.gz 803943 BLAKE2B 65cc5dc0d1ee85d1e2b6670f7c24508ab817c6eebdb596b5f6f70c7ff7b9257f12f70abfea2d735e23755e508d4829d4be6574ac16564d4d828e0b1153cf8afe SHA512 0329711e536cbcaee2efe6cf981a17181ab318846e9c6a82f2ceacc42691ba49c06df44a52d1f079568e9ccec588cc85d4de4adf19b6db83bebe4bb90ae29207
|
||||
DIST ddcutil-1.3.0.tar.gz 816789 BLAKE2B 1cb3b64961503416b85b792e1002ec67788f8cf7d622be1c4930808f99e16974ff57ed582d1d02a67580e3f4d92bef54b3669fd7378462bf4c98a3643d6786be SHA512 93d69958b2e1dcb66ad700712742536179383c93f2ec1f746b6a6c78adfd6daa861275208850cc807e0c16a11ea84904cb13ceef512ca76e1daa910410303d41
|
||||
|
@ -0,0 +1,119 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# Check for bumps & cleanup with app-misc/ddcui
|
||||
|
||||
inherit autotools linux-info udev
|
||||
|
||||
DESCRIPTION="Program for querying and changing monitor settings"
|
||||
HOMEPAGE="https://www.ddcutil.com/"
|
||||
SRC_URI="https://github.com/rockowitz/ddcutil/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
SLOT="0/4"
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
|
||||
IUSE="drm usb-monitor user-permissions video_cards_nvidia X"
|
||||
REQUIRED_USE="drm? ( X )"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/glib:2
|
||||
sys-apps/i2c-tools
|
||||
virtual/udev
|
||||
drm? ( x11-libs/libdrm )
|
||||
usb-monitor? (
|
||||
dev-libs/hidapi
|
||||
virtual/libusb:1
|
||||
sys-apps/usbutils
|
||||
)
|
||||
user-permissions? (
|
||||
acct-group/i2c
|
||||
usb-monitor? ( acct-group/video )
|
||||
)
|
||||
X? (
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libX11
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
# doc? ( app-doc/doxygen[dot] )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-no-werror.patch
|
||||
)
|
||||
|
||||
pkg_pretend() {
|
||||
# This program needs /dev/ic2-* devices to communicate with the monitor.
|
||||
CONFIG_CHECK="~I2C_CHARDEV"
|
||||
ERROR_I2C_CHARDEV="You must enable I2C_CHARDEV in your kernel to continue"
|
||||
if use usb-monitor; then
|
||||
CONFIG_CHECK+=" ~HIDRAW ~USB_HIDDEV"
|
||||
ERROR_HIDRAW="HIDRAW is needed to support USB monitors"
|
||||
ERROR_I2C_CHARDEV="USB_HIDDEV is needed to support USB monitors"
|
||||
fi
|
||||
|
||||
# Now do the actual checks setup above
|
||||
check_extra_config
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
# FAILS: doxyfile: No such file or directory
|
||||
# $(use_enable doc doxygen)
|
||||
$(use_enable drm)
|
||||
--enable-udev
|
||||
$(use_enable usb-monitor usb)
|
||||
--enable-lib
|
||||
$(use_enable X x11)
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
if use user-permissions; then
|
||||
udev_dorules data/etc/udev/rules.d/45-ddcutil-i2c.rules
|
||||
if use usb-monitor; then
|
||||
udev_dorules data/etc/udev/rules.d/45-ddcutil-usb.rules
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use user-permissions; then
|
||||
einfo "To allow non-root users access to the /dev/i2c-* devices, add those"
|
||||
einfo "users to the i2c group: usermod -aG i2c user"
|
||||
einfo "Restart the computer or reload the i2c-dev module to activate"
|
||||
einfo "the new udev rule."
|
||||
einfo "For more information read: http://www.ddcutil.com/i2c_permissions/"
|
||||
|
||||
if use usb-monitor; then
|
||||
einfo "To allow non-root users access to USB monitors, add those users"
|
||||
einfo "to the video group: usermod -aG video user"
|
||||
einfo "Restart the computer, reload the hiddev and hidraw modules, or replug"
|
||||
einfo "the monitor to activate the new udev rule."
|
||||
einfo "For more information read: http://www.ddcutil.com/usb/"
|
||||
fi
|
||||
|
||||
udev_reload
|
||||
fi
|
||||
|
||||
if use video_cards_nvidia; then
|
||||
ewarn "Please read the following webpage on proper usage with the nVidia "
|
||||
ewarn "binary drivers, or it may not work: http://www.ddcutil.com/nvidia/"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
if use user-permissions; then
|
||||
udev_reload
|
||||
fi
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
diff --git a/src/app_ddcutil/Makefile.am b/src/app_ddcutil/Makefile.am
|
||||
index 068e419..f21e9fd 100644
|
||||
--- a/src/app_ddcutil/Makefile.am
|
||||
+++ b/src/app_ddcutil/Makefile.am
|
||||
@@ -5,7 +5,6 @@ AM_CPPFLAGS = \
|
||||
|
||||
|
||||
AM_CFLAGS = -Wall
|
||||
-AM_CFLAGS += -Werror
|
||||
# AM_CFLAGS += -Wpedantic
|
||||
|
||||
if ENABLE_CALLGRAPH_COND
|
||||
diff --git a/src/app_sysenv/Makefile.am b/src/app_sysenv/Makefile.am
|
||||
index a182ff9..753f187 100644
|
||||
--- a/src/app_sysenv/Makefile.am
|
||||
+++ b/src/app_sysenv/Makefile.am
|
||||
@@ -12,7 +12,6 @@ endif
|
||||
|
||||
|
||||
AM_CFLAGS = -Wall
|
||||
-AM_CFLAGS += -Werror
|
||||
# AM_CFLAGS += -Wpedantic
|
||||
|
||||
if ENABLE_CALLGRAPH_COND
|
||||
diff --git a/src/i2c/Makefile.am b/src/i2c/Makefile.am
|
||||
index 52a4efa..5c671e1 100644
|
||||
--- a/src/i2c/Makefile.am
|
||||
+++ b/src/i2c/Makefile.am
|
||||
@@ -5,7 +5,6 @@ AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/public
|
||||
|
||||
AM_CFLAGS = -Wall
|
||||
-AM_CFLAGS += -Werror
|
||||
# AM_CFLAGS += -Wpedantic
|
||||
|
||||
if ENABLE_CALLGRAPH_COND
|
||||
diff --git a/src/libmain/Makefile.am b/src/libmain/Makefile.am
|
||||
index ace200a..46cc9f4 100644
|
||||
--- a/src/libmain/Makefile.am
|
||||
+++ b/src/libmain/Makefile.am
|
||||
@@ -5,7 +5,6 @@ AM_CPPFLAGS = \
|
||||
|
||||
|
||||
AM_CFLAGS = -Wall
|
||||
-AM_CFLAGS += -Werror
|
||||
# AM_CFLAGS += -Wpedantic
|
||||
|
||||
if ENABLE_CALLGRAPH_COND
|
||||
diff --git a/src/sample_clients/Makefile.am b/src/sample_clients/Makefile.am
|
||||
index 1593521..63d2307 100644
|
||||
--- a/src/sample_clients/Makefile.am
|
||||
+++ b/src/sample_clients/Makefile.am
|
||||
@@ -7,7 +7,6 @@ AM_CPPFLAGS= \
|
||||
-I$(top_srcdir)/src
|
||||
|
||||
AM_CFLAGS = -Wall -fPIC
|
||||
-# AM_CFLAGS += -Werror
|
||||
|
||||
check_PROGRAMS =
|
||||
if ENABLE_SHARED_LIB_COND
|
||||
diff --git a/src/test/Makefile.am b/src/test/Makefile.am
|
||||
index c12f15c..27d2124 100644
|
||||
--- a/src/test/Makefile.am
|
||||
+++ b/src/test/Makefile.am
|
||||
@@ -4,7 +4,7 @@ $(GLIB_CFLAGS) \
|
||||
-I$(top_srcdir)/src \
|
||||
-I$(top_srcdir)/src/public
|
||||
|
||||
-AM_CFLAGS = -Wall -Werror
|
||||
+AM_CFLAGS = -Wall
|
||||
|
||||
CLEANFILES = \
|
||||
*expand
|
@ -1,2 +1 @@
|
||||
DIST wcd-6.0.2.tar.gz 713062 BLAKE2B 13a745fd698b009aedb19e688a5deec7d62c42acf2dc430b7f586f300712ad684e8530a9b2477cf2d7a6540769efc98c245215cbe756b78c3902d03430b034d9 SHA512 587a52efaf0a585e4fc8a04a0eb08445cf4c78d38abd7592658f61827aa6cc0f1e8af8643c411d22d74145479c9970b018b11fc7a2a08b4ba7c850097813b06f
|
||||
DIST wcd-6.0.3.tar.gz 813763 BLAKE2B 2e215c427914705213590d7c5182bebf39becbf24238bd71c5fdd12f7e63894b2ad571793f6d25833edd3f7cd4f3acbb07bbc821880c22d7a5d4f373cd972055 SHA512 b48a6f8a196725b4b570701813cf8a96e13e4fd6289b6c779218acc20ea1ea841e5f8648f717bb389976b715b95856e91bad3ffb20f8d80961d75eae8eacfbe8
|
||||
|
@ -1,45 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Wherever Change Directory"
|
||||
HOMEPAGE="http://waterlan.home.xs4all.nl/#WCD_ANCHOR"
|
||||
SRC_URI="http://waterlan.home.xs4all.nl/${PN}/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="amd64 arm x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="nls unicode"
|
||||
|
||||
CDEPEND="
|
||||
sys-libs/ncurses:=[unicode(+)?]
|
||||
unicode? ( dev-libs/libunistring:= )"
|
||||
DEPEND="${CDEPEND}
|
||||
app-text/ghostscript-gpl
|
||||
virtual/pkgconfig
|
||||
"
|
||||
RDEPEND="${CDEPEND}"
|
||||
|
||||
S="${WORKDIR}/${P}/src"
|
||||
|
||||
src_prepare() {
|
||||
eapply -p2 "${FILESDIR}"/${PN}-6.0.2-gentoo.patch
|
||||
eapply_user
|
||||
tc-export CC PKG_CONFIG
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local mycompile="LFS=1"
|
||||
use nls || mycompile+=" ENABLE_NLS="
|
||||
use unicode && mycompile+=" UCS=1 UNINORM=1"
|
||||
emake ${mycompile}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local DOCS=( ../README.txt )
|
||||
default
|
||||
emake DESTDIR="${D}" DOTWCD=1 install-profile sysconfdir="/etc"
|
||||
}
|
@ -1,46 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Wherever Change Directory"
|
||||
HOMEPAGE="http://waterlan.home.xs4all.nl/#WCD_ANCHOR"
|
||||
SRC_URI="http://waterlan.home.xs4all.nl/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="nls unicode"
|
||||
|
||||
CDEPEND="
|
||||
sys-libs/ncurses:=[unicode(+)?]
|
||||
unicode? ( dev-libs/libunistring:= )"
|
||||
DEPEND="${CDEPEND}"
|
||||
BDEPEND="
|
||||
app-text/ghostscript-gpl
|
||||
virtual/pkgconfig
|
||||
"
|
||||
RDEPEND="${CDEPEND}"
|
||||
|
||||
S="${WORKDIR}/${P}/src"
|
||||
|
||||
src_prepare() {
|
||||
eapply -p2 "${FILESDIR}"/${PN}-6.0.2-gentoo.patch
|
||||
eapply_user
|
||||
tc-export CC PKG_CONFIG
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local mycompile="LFS=1"
|
||||
use nls || mycompile+=" ENABLE_NLS="
|
||||
use unicode && mycompile+=" UCS=1 UNINORM=1"
|
||||
emake ${mycompile}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local DOCS=( ../README.txt )
|
||||
default
|
||||
emake DESTDIR="${D}" DOTWCD=1 install-profile sysconfdir="/etc"
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
DIST zygrib-8.0.1.tgz 19759812 BLAKE2B f7f73cb54b18e510b0097fae27400efef081fb66f2bf361d5929d69c69087107ecb1d88fe83495571fe85edbd2464910776797e5c6700505acac9585951f0854 SHA512 bb7146289d0966a174e0d888d6edc2830a2399f9cf51eb439371d90656fb9529fb08eebde8ea74f21f3c2aa7e625a258a318b9388523636815c8348269adb73d
|
||||
DIST zygrib-cities_0-300.txt.gz 517620 BLAKE2B 74916674c84b171d34f882d15a244349940e2ccad5e408f7420484b400357945cc78339c2db70eb05b428f35f4b35695b9ec655a42a23779f66649e1b7432274 SHA512 f3c51e600e21d082759d3cf71c48742896e8cf3838e08c57eefa312ac7ef2dd1f23cbf02e9374aa9779be4bc5c04fd2748ef814b5b4b40b9d24fe4f1f5de4d80
|
||||
DIST zygrib-cities_1k-3k.txt.gz 495119 BLAKE2B 16bfe2d5ff4c67c8e9858fa352aea23ae13ffa7668183d0cb3fe5e98cc6683e8a969c802c9297a29e9773dd471f233a900f2fca2e5e58f4090e0999107e9a72c SHA512 010d6688b9c381f0ace549c53a45f8bd43f1d6846dc01241ab7bfdf30b0629f39ef2a9a715c55a534634ad8480bc2edc2796a09f0c369406027f35f6b4ba8c08
|
||||
DIST zygrib-cities_300-1k.txt.gz 512733 BLAKE2B 2e480411ab8278c57f1368e809166820d9e1f5bf931e6eaf053a2448ec808b2b60d20ad5d5517cc590fc0c3c074b41a5b388856ea6145d5f6f5938d0ed50967e SHA512 f22f10c5d4d011593cf658acc2b2bdb6678d9ad26be0dfab67e2e6546439adc2c5a26d04889ddfd3544dbd2ff4d52e1d17e7d4b7d929e589fe55ceb6c0dc4112
|
||||
DIST zygrib-icon.png 851 BLAKE2B 15a300726e4ee486aa49116fe7ca74b655fe316ef0c1fee116e83cd949d273744d7e76ed3f4d847a40d74e6bbaa0d3ace71fea2ad7cd86f041576b6ab986c698 SHA512 9f36e96be1efa5df558321b631b43a7496ec812e76eb1eb5392b1a0afdec782f427b9d0b697102a661258ac1edd00b4bb0a84788c73e1fcd5f16584ad566fe5b
|
||||
DIST zygrib-maps2.4.tgz 105735981 BLAKE2B b3d666481d374cadc50ec979ed8a2ed9920bd80e2bf8a01dd2aded8a39df12e335515e84e666aeb8b01f37bc37126016bf8dc63d90a0492903c6436cf5c56a87 SHA512 0f10786ef81141299fd9550e36d976ce126b0d3523b56c10b19a839d56e17697ac93915b46f31d6691950f1e6d13c368fa1d198a5e2d830768fcb9e63034b487
|
@ -1,20 +0,0 @@
|
||||
--- a/src/zyGrib.pro 2017-01-16 21:55:32.459388028 +0100
|
||||
+++ b/src/zyGrib.pro 2017-01-16 22:17:18.509256966 +0100
|
||||
@@ -8,7 +8,7 @@
|
||||
TARGET = zyGrib
|
||||
|
||||
DEPENDPATH += . util map GUI
|
||||
-INCLUDEPATH += . util map GUI curvedrawer qwt-6.1.3/src g2clib
|
||||
+INCLUDEPATH += . util map GUI curvedrawer /usr/include/qwt6 g2clib
|
||||
|
||||
# ----------------------------------------------------
|
||||
# platform specific
|
||||
@@ -35,7 +35,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
-LIBS += -lbz2 -lz -lproj -lnova -Lqwt-6.1.3/lib/ -lqwt
|
||||
+LIBS += -lbz2 -lz -lproj -lnova -lqwt6-qt5
|
||||
LIBS += -Lg2clib -lg2c -lpng # respect order!
|
||||
|
||||
# ----------------------------------------------------
|
@ -1,20 +0,0 @@
|
||||
From 481e9d3f8f8086afa7deb4ac6db60a2575dc2203 Mon Sep 17 00:00:00 2001
|
||||
From: KIVACHUK Valentin <valentin.kivachuk@irt-saintexupery.com>
|
||||
Date: Tue, 10 Sep 2019 11:29:37 +0200
|
||||
Subject: [PATCH] Fix proj build error
|
||||
|
||||
---
|
||||
proj_deprecated_api.patch | 2 ++
|
||||
1 files changed, 2 insertions(+)
|
||||
|
||||
--- a/src/map/Projection.h 2016-11-09 17:27:38.000000000 +0100
|
||||
+++ b/src/map/Projection.h 2019-09-10 10:20:27.440134499 +0200
|
||||
@@ -21,6 +21,8 @@
|
||||
#include <QObject>
|
||||
#include <cstdio>
|
||||
|
||||
+#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
|
||||
+
|
||||
#include "proj_api.h"
|
||||
|
||||
class Projection : public QObject
|
@ -1,38 +0,0 @@
|
||||
From 73b1e8a9b622a27a03425db03bdbaee0eb88b8b7 Mon Sep 17 00:00:00 2001
|
||||
From: Andreas Sturmlechner <asturm@gentoo.org>
|
||||
Date: Wed, 15 Jul 2020 14:21:13 +0200
|
||||
Subject: [PATCH] Fix build with Qt 5.15 (missing headers)
|
||||
|
||||
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
|
||||
---
|
||||
src/IacPlot.h | 1 +
|
||||
src/SkewT.h | 1 +
|
||||
2 files changed, 2 insertions(+)
|
||||
|
||||
diff --git a/src/IacPlot.h b/src/IacPlot.h
|
||||
index dab76b6..59f6deb 100644
|
||||
--- a/src/IacPlot.h
|
||||
+++ b/src/IacPlot.h
|
||||
@@ -30,6 +30,7 @@ Lecture mise en mémoire d'un fichier IAC (fleetcodes)
|
||||
|
||||
#include <QApplication>
|
||||
#include <QPainter>
|
||||
+#include <QPainterPath>
|
||||
#include <QString>
|
||||
|
||||
#include "DataMeteoAbstract.h"
|
||||
diff --git a/src/SkewT.h b/src/SkewT.h
|
||||
index eb70372..36d4df8 100644
|
||||
--- a/src/SkewT.h
|
||||
+++ b/src/SkewT.h
|
||||
@@ -16,6 +16,7 @@
|
||||
#include <QMainWindow>
|
||||
#include <QFrame>
|
||||
#include <QPainter>
|
||||
+#include <QPainterPath>
|
||||
#include <QLayout>
|
||||
#include <QKeyEvent>
|
||||
#include <QPrintDialog>
|
||||
--
|
||||
2.27.0
|
||||
|
@ -1,11 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Name=zyGrib
|
||||
GenericName=GRIB File Viewer
|
||||
Comment=Weather data visualization
|
||||
Exec=/usr/bin/zygrib
|
||||
Terminal=false
|
||||
X-MultipleArgs=false
|
||||
Icon=zygrib
|
||||
Type=Application
|
||||
Categories=Network;
|
@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>mschiff@gentoo.org</email>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="maps">Installs additional GSHHS maps for high resolution coastline data and cities</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
@ -1,71 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
MY_PN="zyGrib"
|
||||
inherit desktop eutils qmake-utils
|
||||
|
||||
DESCRIPTION="GRIB File Viewer - Weather data visualization"
|
||||
HOMEPAGE="http://www.zygrib.org/"
|
||||
# zygrib.org has a DDoS protection and only allowd interactive downloads,
|
||||
# so we mirror the tarball...
|
||||
#SRC_URI="http://www.zygrib.org/getfile.php?file=${MY_PN}-${PV}.tgz -> ${P}.tgz
|
||||
SRC_URI="https://dev.gentoo.org/~mschiff/distfiles/${MY_PN}-${PV}.tgz -> ${P}.tgz
|
||||
https://dev.gentoo.org/~mschiff/distfiles/${PN}-icon.png
|
||||
maps? (
|
||||
http://zygrib.org/getfile.php?file=zyGrib_maps2.4.tgz -> zygrib-maps2.4.tgz
|
||||
http://www.zygrib.org/getfile.php?file=cities_1k-3k.txt.gz -> zygrib-cities_1k-3k.txt.gz
|
||||
http://www.zygrib.org/getfile.php?file=cities_300-1k.txt.gz -> zygrib-cities_300-1k.txt.gz
|
||||
http://www.zygrib.org/getfile.php?file=cities_0-300.txt.gz -> zygrib-cities_0-300.txt.gz
|
||||
)"
|
||||
|
||||
LICENSE="GPL-3 public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+maps"
|
||||
|
||||
DEPEND="app-arch/bzip2
|
||||
dev-qt/qtnetwork:5
|
||||
dev-qt/qtsvg:5
|
||||
media-libs/libpng:*
|
||||
sci-libs/libnova
|
||||
<sci-libs/proj-8:=
|
||||
sys-libs/zlib
|
||||
x11-libs/qwt:6[qt5(+)]"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-libs.patch"
|
||||
"${FILESDIR}/${P}-proj-6.patch" # bug 686078
|
||||
"${FILESDIR}/${P}-qt-5.15.patch" # bug 732732
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
sed -i 's,INSTALLDIR=$(HOME)/zyGrib,INSTALLDIR=$(DESTDIR)/opt/zyGrib,' Makefile || die
|
||||
sed -i "s,QMAKE=/usr/bin/qmake,QMAKE=$(qt5_get_bindir)/qmake," Makefile || die
|
||||
sed -i "/QWTDIR/d" Makefile || die
|
||||
#use jpeg2k || sed -i '/^DEFS=/ s/-DUSE_JPEG2000//' src/g2clib/makefile
|
||||
sed -i '/^DEFS=/ s/-DUSE_JPEG2000//' src/g2clib/makefile || die
|
||||
sed -i '/^LIBS +=/ s/-ljasper//' src/zyGrib.pro || die
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
rm zyGrib || die
|
||||
doicon -s 32 "${DISTDIR}/zygrib-icon.png"
|
||||
make_wrapper "${PN}" "./bin/${MY_PN}" "/opt/${MY_PN}"
|
||||
domenu "${FILESDIR}/zygrib.desktop"
|
||||
|
||||
if use maps; then
|
||||
insinto "/opt/${MY_PN}"
|
||||
doins -r "${WORKDIR}/data"
|
||||
insinto "/opt/${MY_PN}/data/gis"
|
||||
gzip "${WORKDIR}"/*.txt || die
|
||||
doins "${WORKDIR}"/*.txt.gz
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -0,0 +1 @@
|
||||
DIST sc-im-0.8.2.tar.gz 1619617 BLAKE2B 1957b79749012b5e8b24e26f3cde63c84bf971d2183791f986c98ec823a9ab74bf8a126dcdb2a58920af07e068520ebd7efe9c9394235c5a58670f120495e980 SHA512 ae02fd31eb7254208de26802ed6d8b21d77ce2d6997f4a2de5bd2f0a002c763f67f53e6c8e49d66ded096ecd8bf50b1117015e9a0356eaf11c3caef22cf4552c
|
@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person" proxied="yes">
|
||||
<email>efe.izbudak@metu.edu.tr</email>
|
||||
<name>Efe İzbudak</name>
|
||||
</maintainer>
|
||||
<maintainer type="project" proxied="proxy">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="plots">Add <pkg>sci-visualization/gnuplot</pkg> for plotting support</flag>
|
||||
<flag name="xls">Add xls support</flag>
|
||||
<flag name="xlsx">Add xlsx support</flag>
|
||||
<flag name="ods">Add ods import support</flag>
|
||||
<flag name="X">Use <pkg>x11-misc/xclip</pkg> for clipboard copy/paste</flag>
|
||||
<flag name="tmux">Use <pkg>app-misc/tmux</pkg> for clipboard copy/paste</flag>
|
||||
<flag name="wayland">Use <pkg>gui-apps/wl-clipboard</pkg> for clipboard copy/paste</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">andmarti1424/sc-im</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,141 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
LUA_COMPAT=( lua5-1 luajit )
|
||||
|
||||
inherit lua-single toolchain-funcs flag-o-matic
|
||||
|
||||
DESCRIPTION="Spreadsheet Calculator Improvised -- An ncurses spreadsheet program for terminal"
|
||||
HOMEPAGE="https://github.com/andmarti1424/sc-im"
|
||||
SRC_URI="https://github.com/andmarti1424/sc-im/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${P}/src"
|
||||
|
||||
LICENSE="BSD-4"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="X plots wayland xls xlsx lua ods tmux"
|
||||
REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )"
|
||||
|
||||
DEPEND="
|
||||
sys-libs/ncurses:=
|
||||
|
||||
lua? (
|
||||
${LUA_DEPS}
|
||||
)
|
||||
ods? (
|
||||
dev-libs/libxml2
|
||||
dev-libs/libzip
|
||||
)
|
||||
plots? ( sci-visualization/gnuplot )
|
||||
tmux? ( app-misc/tmux )
|
||||
wayland? ( gui-apps/wl-clipboard )
|
||||
X? ( x11-misc/xclip )
|
||||
xls? (
|
||||
dev-libs/libxls
|
||||
)
|
||||
xlsx? (
|
||||
dev-libs/libxlsxwriter
|
||||
dev-libs/libxml2
|
||||
dev-libs/libzip
|
||||
)
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
pkg_setup() {
|
||||
CONFLICTING=$(usex tmux "tmux " "")$(usex wayland "wayland " "")$(usex X "X" "")
|
||||
if ( use tmux && ( use wayland || use X ) ) ; then
|
||||
elog "Conflicting flags for clipboard support are set: ${CONFLICTING}"
|
||||
elog "tmux support has been preferred."
|
||||
elif ( use wayland && use X ) ; then
|
||||
elog "Conflicting flags for clipboard support are set: ${CONFLICTING}"
|
||||
elog "Wayland support has been preferred."
|
||||
fi
|
||||
|
||||
# Run lua setup
|
||||
lua-single_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Clean Makefile from all sorts of flag / lib setting
|
||||
sed -i -e '/CFLAGS +=\|LDLIBS +=/d' Makefile \
|
||||
|| die "sed fix failed. Uh-oh..."
|
||||
# Also clean the now useless comments and logic
|
||||
sed -i -e '/#\|if\|else/d' Makefile \
|
||||
|| die "sed fix failed. Uh-oh..."
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
tc-export CC PKG_CONFIG
|
||||
|
||||
LDLIBS="-lm"
|
||||
|
||||
# default flags that dont need optional dependencies
|
||||
append-cflags -Wall -g \
|
||||
-DNCURSES \
|
||||
-D_XOPEN_SOURCE_EXTENDED -D_GNU_SOURCE \
|
||||
'-DSNAME=\"sc-im\"' \
|
||||
'-DHELP_PATH=\"/usr/share/sc-im\"' \
|
||||
'-DLIBDIR=\"/usr/share/doc/sc-im\"' \
|
||||
'-DDFLT_PAGER=\"less\"' \
|
||||
'-DDFLT_EDITOR=\"vim\"' \
|
||||
-DUSECOLORS \
|
||||
'-DHISTORY_FILE=\"sc-iminfo\"' \
|
||||
'-DHISTORY_DIR=\".cache\"' \
|
||||
'-DCONFIG_FILE=\"scimrc\"' \
|
||||
'-DCONFIG_DIR=\".config/sc-im\"' \
|
||||
'-DINS_HISTORY_FILE=\"sc-iminfo\"' \
|
||||
-DUNDO \
|
||||
-DMAXROWS=65536 \
|
||||
-DUSELOCALE \
|
||||
-DMOUSE \
|
||||
'-DDEFAULT_OPEN_FILE_UNDER_CURSOR_CMD=\""scopen"\"' \
|
||||
-DAUTOBACKUP \
|
||||
-DHAVE_PTHREAD
|
||||
|
||||
# setting default clipboard commands
|
||||
if use tmux ; then
|
||||
append-cflags '-DDEFAULT_COPY_TO_CLIPBOARD_CMD=\""tmux load-buffer"\"'
|
||||
append-cflags '-DDEFAULT_PASTE_FROM_CLIPBOARD_CMD=\""tmux show-buffer"\"'
|
||||
elif use wayland ; then
|
||||
append-cflags '-DDEFAULT_COPY_TO_CLIPBOARD_CMD=\""wl-copy <"\"'
|
||||
append-cflags '-DDEFAULT_PASTE_FROM_CLIPBOARD_CMD=\""wl-paste"\"'
|
||||
elif use X ; then
|
||||
append-cflags '-DDEFAULT_COPY_TO_CLIPBOARD_CMD=\""xclip -i -selection clipboard <"\"'
|
||||
append-cflags '-DDEFAULT_PASTE_FROM_CLIPBOARD_CMD=\""xclip -o -selection clipboard"\"'
|
||||
fi
|
||||
|
||||
# optional feature dependency
|
||||
use plots && append-cflags -DGNUPLOT
|
||||
if use xls; then
|
||||
append-cflags -DXLS $(${PKG_CONFIG} --cflags libxls)
|
||||
LDLIBS+=" $(${PKG_CONFIG} --libs libxls)"
|
||||
fi
|
||||
if use xlsx || use ods ; then
|
||||
append-cflags -DODS -DXLSX $(${PKG_CONFIG} --cflags libxml-2.0 libzip)
|
||||
LDLIBS+=" -DODS -DXLSX $(${PKG_CONFIG} --libs libxml-2.0 libzip)"
|
||||
fi
|
||||
if use xlsx ; then
|
||||
append-cflags -DXLSX_EXPORT $(${PKG_CONFIG} --cflags xlsxwriter)
|
||||
LDLIBS+=" -DXLSX_EXPORT $(${PKG_CONFIG} --libs xlsxwriter)"
|
||||
fi
|
||||
if use lua ; then
|
||||
append-cflags -DXLUA $(${PKG_CONFIG} --cflags lua)
|
||||
LDLIBS+=" -DXLUA $(${PKG_CONFIG} --libs lua) -rdynamic"
|
||||
fi
|
||||
append-cflags $(${PKG_CONFIG} --cflags ncursesw) || append-cflags $(${PKG_CONFIG} --cflags ncurses)
|
||||
LDLIBS+=" $(${PKG_CONFIG} --libs ncursesw)" || LDLIBS+=" $(${PKG_CONFIG} --libs ncurses)"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake LDLIBS="${LDLIBS}" CFLAGS="${CFLAGS}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" prefix="/usr" install
|
||||
einstalldocs
|
||||
}
|
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST OOoFBTools-3.0.zip 5371699 BLAKE2B 1288a6915aeaad89b7fdc07b584b02bc7387edfe14d0fd51c30c7c8b061ab4967f7e16ea407f8be658739c64ce266a24f1404cbdf88d7d0d479bacf4bb9bdcf7 SHA512 af257febd4a2c2361586567e5d48205d31f517a7142a6da358ef4e0261c27d19cfb594417c06fce73811ae8e4e69812bec00d4ed8a0acd6881011f46d4dfadab
|
||||
DIST OOoFBTools-3.4.1.zip 5279862 BLAKE2B 9a95ed4956a5deb58e53202b587b573579b966e43c052164d3a4b20cc2ee7fd1532bb9dab9ab2c486629000a212de752d75fb4f1d77afece1bd130b079be7beb SHA512 1ec04cbf32824d884fed7ff12a59b43486c96a1b4580a0a24fcc73ebbe7d565ae87e8f7600eb19846f34b1a4c94dacf7ebe755e70692501cd87d12ea470ca8d8
|
||||
|
@ -1,39 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
MY_PN="OOoFBTools"
|
||||
OFFICE_EXTENSIONS=( "${MY_PN}.oxt" )
|
||||
inherit office-ext-r1
|
||||
|
||||
DESCRIPTION="Open/LibreOffice extension for the FictionBook2 format with validation"
|
||||
HOMEPAGE="https://sourceforge.net/projects/fbtools/"
|
||||
SRC_URI="mirror://sourceforge/fbtools/files/release/${MY_PN}-${PV}.zip"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
RDEPEND="
|
||||
app-arch/zip
|
||||
dev-libs/libxml2
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
|
||||
OFFICE_EXTENSIONS_LOCATION="${S}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Remove Windows cruft
|
||||
pushd "${WORKDIR}/${MY_PN}.oxt" &>/dev/null || die
|
||||
rm -r win32 || die
|
||||
popd &>/dev/null || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
office-ext-r1_src_install
|
||||
dodoc ChangeLog*
|
||||
}
|
Binary file not shown.
@ -1,2 +1,2 @@
|
||||
DIST portage-utils-0.93.3.tar.xz 1796828 BLAKE2B cfad7ab27ff2d92f631f4e31012e8903c5fa6113485f727338812059379cdd4a9552d80dc3aef6bb91264c361c0554fe9054a12347e274c4c5c3db66fd36008b SHA512 c1245aa78d236263cd266fc8565312c2ac30cb992037a7b0f26da04ecf2dfeebc85bff653784e186cf2c7d7468e4772fb0bd93bcdb3a37d46e493d000933e5a1
|
||||
DIST portage-utils-0.94.1.tar.xz 1871688 BLAKE2B bec5ddd514b397c157c3b1bff70d61730f15804a6751f56eb69c4030a35fc6a6b11fa1e2bde94332772660f02bf9428623210733ae9e2f1290f29aa3b31a1813 SHA512 29fdb4093997eb95703d407da6b00305c949f0a00ae3aa5cfb2c47b66bddc59e034fae114663b40b611f906332066b648018aa4e5bc1b935e61a64f4b4bf1088
|
||||
DIST portage-utils-0.94.3.tar.xz 1804720 BLAKE2B b0239a26d878db6dd73c9ee54f586526f8812921775126ef74afbe089186fdc5ca7197847e204c6ecbf9d79b6e2a6173cb0c39d4a26653ed0db2d7f9b10e88c5 SHA512 bf8fcccc26bb985bf7664f6ab0227a5251c3f918199de0c4e4c95b7107eb72eee367d1d524b5d9608b3c7eea9b1fae789456390cbb0d375297b807bb98644e01
|
||||
|
@ -1,67 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="Small and fast Portage helper tools written in C"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/Portage-utils"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="nls static openmp +qmanifest +qtegrity"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3 autotools
|
||||
EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/portage-utils.git"
|
||||
else
|
||||
SRC_URI="https://dev.gentoo.org/~grobian/distfiles/${P}.tar.xz"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
RDEPEND="
|
||||
qmanifest? (
|
||||
openmp? (
|
||||
|| (
|
||||
>=sys-devel/gcc-4.2:*[openmp]
|
||||
sys-devel/clang-runtime:*[openmp]
|
||||
)
|
||||
)
|
||||
static? (
|
||||
app-crypt/libb2:=[static-libs]
|
||||
dev-libs/openssl:0=[static-libs]
|
||||
sys-libs/zlib:=[static-libs]
|
||||
app-crypt/gpgme:=[static-libs]
|
||||
)
|
||||
!static? (
|
||||
app-crypt/libb2:=
|
||||
dev-libs/openssl:0=
|
||||
sys-libs/zlib:=
|
||||
app-crypt/gpgme:=
|
||||
)
|
||||
)
|
||||
qtegrity? (
|
||||
openmp? (
|
||||
|| (
|
||||
>=sys-devel/gcc-4.2:*[openmp]
|
||||
sys-devel/clang-runtime:*[openmp]
|
||||
)
|
||||
)
|
||||
static? (
|
||||
dev-libs/openssl:0=[static-libs]
|
||||
)
|
||||
!static? (
|
||||
dev-libs/openssl:0=
|
||||
)
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-maintainer-mode \
|
||||
--with-eprefix="${EPREFIX}" \
|
||||
$(use_enable qmanifest) \
|
||||
$(use_enable qtegrity) \
|
||||
$(use_enable openmp) \
|
||||
$(use_enable static)
|
||||
}
|
@ -0,0 +1,75 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit flag-o-matic toolchain-funcs
|
||||
|
||||
DESCRIPTION="Small and fast Portage helper tools written in C"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/Portage-utils"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3 autotools
|
||||
EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/portage-utils.git"
|
||||
else
|
||||
SRC_URI="https://dev.gentoo.org/~grobian/distfiles/${P}.tar.xz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="openmp +qmanifest +qtegrity static"
|
||||
|
||||
RDEPEND="
|
||||
qmanifest? (
|
||||
!static? (
|
||||
app-crypt/gpgme:=
|
||||
app-crypt/libb2:=
|
||||
dev-libs/openssl:=
|
||||
sys-libs/zlib:=
|
||||
)
|
||||
)
|
||||
qtegrity? (
|
||||
!static? (
|
||||
dev-libs/openssl:=
|
||||
)
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
qmanifest? (
|
||||
static? (
|
||||
app-crypt/gpgme[static-libs]
|
||||
app-crypt/libb2[static-libs]
|
||||
dev-libs/openssl[static-libs]
|
||||
sys-libs/zlib[static-libs]
|
||||
)
|
||||
)
|
||||
qtegrity? (
|
||||
static? (
|
||||
dev-libs/openssl[static-libs]
|
||||
)
|
||||
)"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
pkg_pretend() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
[[ ${PV} == *9999 ]] && eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
use static && append-ldflags -static
|
||||
|
||||
econf \
|
||||
--disable-maintainer-mode \
|
||||
--with-eprefix="${EPREFIX}" \
|
||||
$(use_enable qmanifest) \
|
||||
$(use_enable qtegrity) \
|
||||
$(use_enable openmp)
|
||||
}
|
Binary file not shown.
@ -0,0 +1,72 @@
|
||||
# Copyright 2019-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit bash-completion-r1 go-module
|
||||
|
||||
DESCRIPTION="General-purpose command-line fuzzy finder, written in Golang"
|
||||
HOMEPAGE="https://github.com/junegunn/fzf"
|
||||
|
||||
# For fancy versioning only. Bump on the next release!
|
||||
# MY_GIT_REV is the first 7 characters of release commit, we truncate it
|
||||
# after to make it easier to copy/paste.
|
||||
MY_GIT_REV=e03ac3136e17a525bc67d62728ccb3eb8179f183
|
||||
MY_GIT_REV=${MY_GIT_REV:0:7}
|
||||
|
||||
SRC_URI="https://github.com/junegunn/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz"
|
||||
|
||||
LICENSE="MIT BSD-with-disclosure"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i 's/-s -w //' Makefile || die # bug 795225
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake PREFIX="${EPREFIX}"/usr VERSION=${PV} REVISION=${MY_GIT_REV} bin/${PN}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/${PN}
|
||||
doman man/man1/${PN}.1
|
||||
|
||||
dobin bin/${PN}-tmux
|
||||
doman man/man1/${PN}-tmux.1
|
||||
|
||||
insinto /usr/share/vim/vimfiles/plugin
|
||||
doins plugin/${PN}.vim
|
||||
|
||||
insinto /usr/share/nvim/runtime/plugin
|
||||
doins plugin/${PN}.vim
|
||||
|
||||
newbashcomp shell/completion.bash ${PN}
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins shell/completion.zsh _${PN}
|
||||
|
||||
insinto /usr/share/fzf
|
||||
doins shell/key-bindings.bash
|
||||
doins shell/key-bindings.fish
|
||||
doins shell/key-bindings.zsh
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z ${REPLACING_VERSIONS} ]]; then
|
||||
elog "To add fzf support to your shell, make sure to use the right file"
|
||||
elog "from ${EROOT}/usr/share/fzf."
|
||||
elog
|
||||
elog "For bash, add the following line to ~/.bashrc:"
|
||||
elog
|
||||
elog " # source ${EROOT}/usr/share/bash-completion/completions/fzf"
|
||||
elog " # source ${EROOT}/usr/share/fzf/key-bindings.bash"
|
||||
elog
|
||||
elog "Plugins for Vim and Neovim are installed to respective directories"
|
||||
elog "and will work out of the box."
|
||||
elog
|
||||
elog "For fzf support in tmux see fzf-tmux(1)."
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST html-xml-utils-7.7.tar.gz 403664 BLAKE2B cdb97003bb6fb0138910f8f00b9612db3eb8ed4fa0ee81f27260e8907c088e14ac010f2862839355a4a6c0eca49508ad47c4e26f1c1c62e178c3b0e880ed124d SHA512 72b71982717de11b3b5f601a157a04bb6ecc235db6810a0dd830ad7682ed16cd6a928730013cfc918f722e1e5f03c357cd2545806288986797230f9d04175460
|
||||
DIST html-xml-utils-7.8.tar.gz 408201 BLAKE2B c2fed68e8fa0ae331ff6ce100afdd4c7c5b272b47d806c8e557855d32d2a140c2aa580d200644158350697e62c416d16a5e264c09897cef06d29cc5f0ab67091 SHA512 8d3a242203de099b36ca78a8d84571ecc5d8673855ee613f98edc48d388230367f40b87006f7b429e2927026300626bed7ff7f146df317d078e332091d290930
|
||||
|
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit multilib-minimal
|
||||
|
||||
DESCRIPTION="A number of simple utilities for manipulating HTML and XML files"
|
||||
SRC_URI="http://www.w3.org/Tools/HTML-XML-utils/${P}.tar.gz"
|
||||
HOMEPAGE="http://www.w3.org/Tools/HTML-XML-utils/"
|
||||
|
||||
LICENSE="W3C"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc ppc64 x86 ~x86-linux ~ppc-macos"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="net-misc/curl"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -e "/doc_DATA = COPYING/d" -i Makefile.in || die
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
ECONF_SOURCE="${S}" econf
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
multilib-minimal_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
multilib-minimal_src_install
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit multilib-minimal
|
||||
|
||||
DESCRIPTION="A number of simple utilities for manipulating HTML and XML files"
|
||||
SRC_URI="http://www.w3.org/Tools/HTML-XML-utils/${P}.tar.gz"
|
||||
HOMEPAGE="http://www.w3.org/Tools/HTML-XML-utils/"
|
||||
|
||||
LICENSE="W3C"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-linux ~ppc-macos"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="net-misc/curl"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -e "/doc_DATA = COPYING/d" -i Makefile.in || die
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
ECONF_SOURCE="${S}" econf
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
multilib-minimal_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
multilib-minimal_src_install
|
||||
}
|
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST gitgutter-20180815.tar.gz 46741 BLAKE2B 85189390a2d8c5feaf8d2fabfd2c72bf79954fd1e9f2c3ffeca748e84caf13924f71ef5837ab62aef0ae003a01304305e73bbcb12dca27294c8164e960249fec SHA512 b6d3bd0f779d9afbd38df33888ab3ee0f1d8d10de0a6c5c6766f7f73a292cdd589a6774faa2871877075f6cedd29f14bba07c9a769d706e0e67d8817db86cfaa
|
||||
DIST gitgutter-20220524.tar.gz 602709 BLAKE2B c3199ebb66076f2ba08872ac610ff3818ce9f021219777326fe76620b7a923793576e693c6960056cdba3aee102538b4394e73c2f0972b387f669caef74304a2 SHA512 fb45b40f1a555a34d99436ef9f4d44a12438427c044b156119d319d374a98f3c18e6c5649adbda24c4e7a4db5e24cea29bd16e05188187e07ca331f65f3b8bfa
|
||||
|
@ -1,29 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit vim-plugin
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
EGIT_REPO_URI="https://github.com/airblade/vim-gitgutter.git"
|
||||
inherit git-r3
|
||||
else
|
||||
inherit vcs-snapshot
|
||||
COMMIT_HASH="50a7062909d91a290fae04219887b1b45f3138db"
|
||||
SRC_URI="https://github.com/airblade/vim-gitgutter/archive/${COMMIT_HASH}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="amd64 x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="vim plugin: shows a git diff in the sign column and stages/reverts hunks"
|
||||
HOMEPAGE="https://github.com/airblade/vim-gitgutter/"
|
||||
LICENSE="MIT"
|
||||
VIM_PLUGIN_HELPFILES="${PN}.txt"
|
||||
|
||||
RDEPEND="dev-vcs/git"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# remove unwanted test dir
|
||||
rm -r test || die
|
||||
}
|
Binary file not shown.
@ -0,0 +1,41 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# These must be bumped together:
|
||||
# dev-cpp/edencommon
|
||||
# dev-cpp/folly
|
||||
# dev-util/watchman
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Shared library for Watchman and Eden projects"
|
||||
HOMEPAGE="https://github.com/facebookexperimental/edencommon"
|
||||
SRC_URI="https://github.com/facebookexperimental/edencommon/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="llvm-libunwind"
|
||||
|
||||
RDEPEND="
|
||||
dev-cpp/gflags:=
|
||||
dev-cpp/glog:=[gflags]
|
||||
dev-cpp/folly:=
|
||||
llvm-libunwind? ( sys-libs/llvm-libunwind:= )
|
||||
!llvm-libunwind? ( sys-libs/libunwind:= )
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
dev-cpp/gtest
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_INSTALL_DIR="$(get_libdir)/cmake/${PN}"
|
||||
-DLIB_INSTALL_DIR="$(get_libdir)"
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
@ -0,0 +1,100 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# These must be bumped together:
|
||||
# dev-cpp/edencommon
|
||||
# dev-cpp/folly
|
||||
# dev-util/watchman
|
||||
|
||||
inherit cmake toolchain-funcs
|
||||
|
||||
DESCRIPTION="An open-source C++ library developed and used at Facebook"
|
||||
HOMEPAGE="https://github.com/facebook/folly"
|
||||
SRC_URI="https://github.com/facebook/folly/releases/download/v${PV}/${PN}-v${PV}.tar.gz"
|
||||
S="${WORKDIR}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="llvm-libunwind test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="app-arch/bzip2
|
||||
app-arch/lz4:=
|
||||
app-arch/snappy:=
|
||||
app-arch/xz-utils
|
||||
app-arch/zstd:=
|
||||
dev-cpp/gflags:=
|
||||
dev-cpp/glog:=[gflags]
|
||||
dev-libs/boost:=[context,threads(+)]
|
||||
dev-libs/double-conversion:=
|
||||
dev-libs/libaio
|
||||
dev-libs/libevent:=
|
||||
dev-libs/libfmt:=
|
||||
dev-libs/libsodium:=
|
||||
dev-libs/openssl:=
|
||||
>=sys-libs/liburing-2.2:=
|
||||
sys-libs/zlib
|
||||
llvm-libunwind? ( sys-libs/llvm-libunwind:= )
|
||||
!llvm-libunwind? ( sys-libs/libunwind:= )"
|
||||
# libiberty is linked statically
|
||||
DEPEND="${RDEPEND}
|
||||
sys-libs/binutils-libs
|
||||
test? ( dev-cpp/gtest )"
|
||||
BDEPEND="test? ( sys-devel/clang )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2022.07.04.00-musl-fix.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
[[ ${BUILD_TYPE} == binary ]] && return
|
||||
|
||||
if use test && ! tc-is-clang ; then
|
||||
# Always build w/ Clang for now to avoid gcc ICE
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106230
|
||||
#if [[ $(gcc-major-version) -eq 12 ]] ; then
|
||||
# return
|
||||
#fi
|
||||
|
||||
## Only older GCC 11 is broken
|
||||
#if [[ $(gcc-major-version) -eq 11 && $(gcc-minor-version) -ge 3 && $(gcc-micro-version) -ge 1 ]] ; then
|
||||
# return
|
||||
#fi
|
||||
|
||||
ewarn "Forcing build with Clang due to GCC bug (because tests are enabled)"
|
||||
#ewarn "(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104008)"
|
||||
|
||||
export CC=${CHOST}-clang
|
||||
export CXX=${CHOST}-clang++
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Fragile when changing compilers
|
||||
export CCACHE_DISABLE=1
|
||||
|
||||
# TODO: liburing could in theory be optional but fails to link
|
||||
local mycmakeargs=(
|
||||
-DLIB_INSTALL_DIR="$(get_libdir)"
|
||||
|
||||
-DBUILD_TESTS=$(usex test)
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local myctestargs=(
|
||||
# - timeseries_histogram_test.TimeseriesHistogram.Percentile|HHWheelTimerTest
|
||||
# Long-standing known test failure
|
||||
# TODO: report upstream
|
||||
# - HHWheelTimerTest.HHWheelTimerTest.CancelTimeout
|
||||
# Timeouts are fragile
|
||||
-E "(timeseries_histogram_test.TimeseriesHistogram.Percentile|HHWheelTimerTest.HHWheelTimerTest.CancelTimeout)"
|
||||
)
|
||||
|
||||
cmake_src_test
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,80 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
EGO_PN="arduino.cc/arduino-builder/..."
|
||||
|
||||
EGO_VENDOR=(
|
||||
"github.com/go-errors/errors a41850380601eeb43f4350f7d17c6bbd8944aaf8"
|
||||
"github.com/jstemmer/go-junit-report 833f8ea2b99d36d5f018698333834f3df200a0c2"
|
||||
"github.com/stretchr/testify 1661650f989674e3e5bcdcb805536e5d31481526"
|
||||
)
|
||||
|
||||
inherit golang-build golang-vcs-snapshot
|
||||
|
||||
DESCRIPTION="A command line tool for compiling Arduino sketches"
|
||||
HOMEPAGE="https://github.com/arduino/arduino-builder"
|
||||
SRC_URI="https://github.com/arduino/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
|
||||
${EGO_VENDOR_URI}"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
RDEPEND="sys-devel/crossdev
|
||||
dev-embedded/avrdude
|
||||
dev-embedded/arduino-ctags"
|
||||
|
||||
DEPEND=">=dev-lang/go-1.9.2"
|
||||
|
||||
src_unpack() {
|
||||
golang-vcs-snapshot_src_unpack
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# As we know, golang packages have to be compiled from namespace-aware paths which is the whole
|
||||
# point of the EGO_PN dance. arduino-builder goes a step further by re-creating its own
|
||||
# namespace inside its source package, messing up with our build process which can't find
|
||||
# packages. Also, our source package contains multiple namespaces which further messes with
|
||||
# messes with our vendoring process (each namespace needs its own vendor directory).
|
||||
# We do the following to try to work around this mess. It looks like upstream reworked this
|
||||
# in its master branch so we should be able to remove this in the upcoming major release.
|
||||
|
||||
local deeppath="${S}/src/${EGO_PN%/...}"
|
||||
for pkgname in builder properties timeutils; do
|
||||
ln -s "${deeppath}/src/arduino.cc/${pkgname}" "${S}/src/arduino.cc/${pkgname}"
|
||||
done
|
||||
ln -s "${deeppath}/vendor/github.com" "${S}/src/github.com"
|
||||
|
||||
# path paths so that they point to system ctags and avrdude
|
||||
eapply "${FILESDIR}/arduino-builder-1.3.25-platform-paths.patch"
|
||||
eapply "${FILESDIR}/arduino-builder-1.3.25-skip-tests.patch"
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# we unfortunately have to copy/paste the contents of golang-build_src_install() here because
|
||||
# we *don't* want to call golang_install_pkgs() which installs all static libraries we've
|
||||
# built. All we want is to install the final executable.
|
||||
|
||||
set -- env GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
|
||||
go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}"
|
||||
echo "$@"
|
||||
"$@" || die
|
||||
|
||||
# END OF COPY/PASTE
|
||||
|
||||
dobin bin/arduino-builder
|
||||
|
||||
# In addition to the binary, we also want to install these two files below. They are needed by
|
||||
# the dev-embedded/arduino which copies those files in its "hardware" folder.
|
||||
insinto "/usr/share/${PN}"
|
||||
cd "src/arduino.cc/builder/hardware" || die
|
||||
doins "platform.txt"
|
||||
doins "platform.keys.rewrite.txt"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
[ ! -x /usr/bin/avr-gcc ] && ewarn "Missing avr-gcc; you need to crossdev -s4 avr"
|
||||
}
|
@ -1,68 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
EGO_PN="github.com/arduino/arduino-builder/..."
|
||||
|
||||
EGO_VENDOR=(
|
||||
"github.com/arduino/go-properties-map ad37f0cfeff29fadeabe6b2f7f852d8db1fb5c41"
|
||||
"github.com/arduino/go-timeutils d1dd9e313b1bfede35fe0bbf46d612e16a50e04e"
|
||||
"github.com/arduino/go-paths-helper 751652ddd9f0a98650e681673c2c73937002e889"
|
||||
"github.com/fsnotify/fsnotify c2828203cd70a50dcccfb2761f8b1f8ceef9a8e9"
|
||||
"github.com/go-errors/errors a41850380601eeb43f4350f7d17c6bbd8944aaf8"
|
||||
"github.com/golang/protobuf aa810b61a9c79d51363740d207bb46cf8e620ed5"
|
||||
"github.com/jstemmer/go-junit-report 833f8ea2b99d36d5f018698333834f3df200a0c2"
|
||||
"github.com/stretchr/testify 1661650f989674e3e5bcdcb805536e5d31481526"
|
||||
"google.golang.org/grpc 8dea3dc473e90c8179e519d91302d0597c0ca1d1 github.com/grpc/grpc-go"
|
||||
"google.golang.org/genproto af9cb2a35e7f169ec875002c1829c9b315cddc04 github.com/google/go-genproto"
|
||||
"golang.org/x/net ed066c81e75eba56dd9bd2139ade88125b855585 github.com/golang/net"
|
||||
"golang.org/x/text e6919f6577db79269a6443b9dc46d18f2238fb5d github.com/golang/text"
|
||||
"golang.org/x/sys 11f53e03133963fb11ae0588e08b5e0b85be8be5 github.com/golang/sys"
|
||||
)
|
||||
|
||||
inherit golang-build golang-vcs-snapshot
|
||||
|
||||
DESCRIPTION="A command line tool for compiling Arduino sketches"
|
||||
HOMEPAGE="https://github.com/arduino/arduino-builder"
|
||||
SRC_URI="https://github.com/arduino/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
|
||||
${EGO_VENDOR_URI}"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="sys-devel/crossdev
|
||||
dev-embedded/avrdude
|
||||
dev-embedded/arduino-ctags"
|
||||
|
||||
DEPEND=">=dev-lang/go-1.9.2"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/arduino-builder-1.4.1-platform-paths.patch"
|
||||
"${FILESDIR}/arduino-builder-1.4.1-skip-tests.patch"
|
||||
)
|
||||
|
||||
src_install() {
|
||||
# we unfortunately have to copy/paste the contents of golang-build_src_install() here because
|
||||
# we *don't* want to call golang_install_pkgs() which installs all static libraries we've
|
||||
# built. All we want is to install the final executable.
|
||||
|
||||
set -- env GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
|
||||
go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}"
|
||||
echo "$@"
|
||||
"$@" || die
|
||||
|
||||
# END OF COPY/PASTE
|
||||
|
||||
dobin bin/arduino-builder
|
||||
# In addition to the binary, we also want to install these two files below. They are needed by
|
||||
# the dev-embedded/arduino which copies those files in its "hardware" folder.
|
||||
insinto "/usr/share/${PN}"
|
||||
cd "src/github.com/arduino/arduino-builder/hardware" || die
|
||||
doins "platform.txt"
|
||||
doins "platform.keys.rewrite.txt"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
[ ! -x /usr/bin/avr-gcc ] && ewarn "Missing avr-gcc; you need to crossdev -s4 avr"
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
diff --git a/src/arduino.cc/builder/hardware/platform.txt b/src/arduino.cc/builder/hardware/platform.txt
|
||||
index ca8df1f..17ce03f 100644
|
||||
--- a/src/arduino.cc/arduino-builder/src/arduino.cc/builder/hardware/platform.txt
|
||||
+++ b/src/arduino.cc/arduino-builder/src/arduino.cc/builder/hardware/platform.txt
|
||||
@@ -1,11 +1,11 @@
|
||||
# ctags
|
||||
# ------------------------------
|
||||
-tools.ctags.path={runtime.tools.ctags.path}
|
||||
-tools.ctags.cmd.path={path}/ctags
|
||||
+tools.ctags.path=/usr/bin
|
||||
+tools.ctags.cmd.path={path}/arduino-ctags
|
||||
tools.ctags.pattern="{cmd.path}" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "{source_file}"
|
||||
|
||||
# additional entries
|
||||
-tools.avrdude.path={runtime.tools.avrdude.path}
|
||||
+tools.avrdude.path=/usr/bin
|
||||
|
||||
preproc.macros.flags=-w -x c++ -E -CC
|
||||
#preproc.macros.compatibility_flags={build.mbed_api_include} {build.nRF51822_api_include} {build.ble_api_include} {compiler.libsam.c.flags} {compiler.arm.cmsis.path} {build.variant_system_include}
|
@ -1,109 +0,0 @@
|
||||
Skip tests that can't run on Gentoo because of the network sandbox
|
||||
diff --git a/src/arduino.cc/builder/test/hardware_loader_test.go b/src/arduino.cc/builder/test/hardware_loader_test.go
|
||||
index c9ea1d5..e7c68d2 100644
|
||||
--- a/src/arduino.cc/arduino-builder/src/arduino.cc/builder/test/hardware_loader_test.go
|
||||
+++ b/src/arduino.cc/arduino-builder/src/arduino.cc/builder/test/hardware_loader_test.go
|
||||
@@ -41,6 +41,7 @@ import (
|
||||
)
|
||||
|
||||
func TestLoadHardware(t *testing.T) {
|
||||
+ t.Skip("Can't run on Gentoo")
|
||||
ctx := &types.Context{
|
||||
HardwareFolders: []string{"downloaded_hardware", filepath.Join("..", "hardware"), "hardware"},
|
||||
}
|
||||
@@ -85,6 +86,7 @@ func TestLoadHardware(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestLoadHardwareMixingUserHardwareFolder(t *testing.T) {
|
||||
+ t.Skip("Can't run on Gentoo")
|
||||
ctx := &types.Context{
|
||||
HardwareFolders: []string{"downloaded_hardware", filepath.Join("..", "hardware"), "hardware", "user_hardware"},
|
||||
}
|
||||
@@ -155,6 +157,7 @@ func TestLoadHardwareMixingUserHardwareFolder(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestLoadHardwareWithBoardManagerFolderStructure(t *testing.T) {
|
||||
+ t.Skip("Can't run on Gentoo")
|
||||
ctx := &types.Context{
|
||||
HardwareFolders: []string{"downloaded_board_manager_stuff"},
|
||||
}
|
||||
@@ -203,6 +206,7 @@ func TestLoadHardwareWithBoardManagerFolderStructure(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestLoadLotsOfHardware(t *testing.T) {
|
||||
+ t.Skip("Can't run on Gentoo")
|
||||
ctx := &types.Context{
|
||||
HardwareFolders: []string{"downloaded_board_manager_stuff", "downloaded_hardware", filepath.Join("..", "hardware"), "hardware", "user_hardware"},
|
||||
}
|
||||
diff --git a/src/arduino.cc/builder/test/helper_tools_downloader.go b/src/arduino.cc/builder/test/helper_tools_downloader.go
|
||||
index 3642510..e6391b6 100644
|
||||
--- a/src/arduino.cc/arduino-builder/src/arduino.cc/builder/test/helper_tools_downloader.go
|
||||
+++ b/src/arduino.cc/arduino-builder/src/arduino.cc/builder/test/helper_tools_downloader.go
|
||||
@@ -83,6 +83,7 @@ type Core struct {
|
||||
}
|
||||
|
||||
func DownloadCoresAndToolsAndLibraries(t *testing.T) {
|
||||
+ t.Skip("Gentoo skips tests requiring network");
|
||||
cores := []Core{
|
||||
Core{Maintainer: "arduino", Arch: "avr", Version: "1.6.10"},
|
||||
Core{Maintainer: "arduino", Arch: "sam", Version: "1.6.7"},
|
||||
@@ -165,6 +166,7 @@ func patchFiles(t *testing.T) {
|
||||
}
|
||||
|
||||
func download(t *testing.T, cores, boardsManagerCores, boardsManagerRedBearCores []Core, tools, toolsMultipleVersions, boardsManagerTools, boardsManagerRFduinoTools []Tool, libraries []Library) {
|
||||
+ t.Skip("Gentoo skips tests requiring network");
|
||||
allCoresDownloaded, err := allCoresAlreadyDownloadedAndUnpacked(HARDWARE_FOLDER, cores)
|
||||
NoError(t, err)
|
||||
if allCoresDownloaded &&
|
||||
diff --git a/src/arduino.cc/builder/test/target_board_resolver_test.go b/src/arduino.cc/builder/test/target_board_resolver_test.go
|
||||
index 274eb92..d6973e3 100644
|
||||
--- a/src/arduino.cc/arduino-builder/src/arduino.cc/builder/test/target_board_resolver_test.go
|
||||
+++ b/src/arduino.cc/arduino-builder/src/arduino.cc/builder/test/target_board_resolver_test.go
|
||||
@@ -39,6 +39,7 @@ import (
|
||||
)
|
||||
|
||||
func TestTargetBoardResolverUno(t *testing.T) {
|
||||
+ t.Skip("Can't run on Gentoo")
|
||||
ctx := &types.Context{
|
||||
HardwareFolders: []string{filepath.Join("..", "hardware"), "hardware", "downloaded_hardware"},
|
||||
FQBN: "arduino:avr:uno",
|
||||
@@ -64,6 +65,7 @@ func TestTargetBoardResolverUno(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestTargetBoardResolverDue(t *testing.T) {
|
||||
+ t.Skip("Can't run on Gentoo")
|
||||
ctx := &types.Context{
|
||||
HardwareFolders: []string{filepath.Join("..", "hardware"), "hardware", "downloaded_hardware"},
|
||||
FQBN: "arduino:sam:arduino_due_x",
|
||||
@@ -89,6 +91,7 @@ func TestTargetBoardResolverDue(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestTargetBoardResolverMega1280(t *testing.T) {
|
||||
+ t.Skip("Can't run on Gentoo")
|
||||
ctx := &types.Context{
|
||||
HardwareFolders: []string{filepath.Join("..", "hardware"), "hardware", "downloaded_hardware"},
|
||||
FQBN: "arduino:avr:mega:cpu=atmega1280",
|
||||
@@ -115,6 +118,7 @@ func TestTargetBoardResolverMega1280(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestTargetBoardResolverMega2560(t *testing.T) {
|
||||
+ t.Skip("Can't run on Gentoo")
|
||||
ctx := &types.Context{
|
||||
HardwareFolders: []string{filepath.Join("..", "hardware"), "hardware", "downloaded_hardware"},
|
||||
FQBN: "arduino:avr:mega:cpu=atmega2560",
|
||||
@@ -141,6 +145,7 @@ func TestTargetBoardResolverMega2560(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestTargetBoardResolverCustomYun(t *testing.T) {
|
||||
+ t.Skip("Can't run on Gentoo")
|
||||
ctx := &types.Context{
|
||||
HardwareFolders: []string{filepath.Join("..", "hardware"), "hardware", "downloaded_hardware", "user_hardware"},
|
||||
FQBN: "my_avr_platform:avr:custom_yun",
|
||||
@@ -167,6 +172,7 @@ func TestTargetBoardResolverCustomYun(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestTargetBoardResolverCustomCore(t *testing.T) {
|
||||
+ t.Skip("Can't run on Gentoo")
|
||||
ctx := &types.Context{
|
||||
HardwareFolders: []string{filepath.Join("..", "hardware"), "hardware", "downloaded_hardware", "user_hardware"},
|
||||
FQBN: "watterott:avr:attiny841:core=spencekonde,info=info",
|
@ -1,19 +0,0 @@
|
||||
diff --git a/src/arduino.cc/builder/hardware/platform.txt b/src/arduino.cc/builder/hardware/platform.txt
|
||||
index ca8df1f..17ce03f 100644
|
||||
--- a/src/github.com/arduino/arduino-builder/hardware/platform.txt
|
||||
+++ b/src/github.com/arduino/arduino-builder/hardware/platform.txt
|
||||
@@ -1,11 +1,11 @@
|
||||
# ctags
|
||||
# ------------------------------
|
||||
-tools.ctags.path={runtime.tools.ctags.path}
|
||||
-tools.ctags.cmd.path={path}/ctags
|
||||
+tools.ctags.path=/usr/bin
|
||||
+tools.ctags.cmd.path={path}/arduino-ctags
|
||||
tools.ctags.pattern="{cmd.path}" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "{source_file}"
|
||||
|
||||
# additional entries
|
||||
-tools.avrdude.path={runtime.tools.avrdude.path}
|
||||
+tools.avrdude.path=/usr/bin
|
||||
|
||||
preproc.macros.flags=-w -x c++ -E -CC
|
||||
#preproc.macros.compatibility_flags={build.mbed_api_include} {build.nRF51822_api_include} {build.ble_api_include} {compiler.libsam.c.flags} {compiler.arm.cmsis.path} {build.variant_system_include}
|
@ -1,129 +0,0 @@
|
||||
Skip tests that can't run on Gentoo because of the network sandbox
|
||||
diff --git a/test/hardware_loader_test.go b/test/hardware_loader_test.go
|
||||
index 147396e..da6c8ef 100644
|
||||
--- a/src/github.com/arduino/arduino-builder/test/hardware_loader_test.go
|
||||
+++ b/src/github.com/arduino/arduino-builder/test/hardware_loader_test.go
|
||||
@@ -41,6 +41,7 @@ import (
|
||||
)
|
||||
|
||||
func TestLoadHardware(t *testing.T) {
|
||||
+ t.Skip("Can't run on Gentoo")
|
||||
ctx := &types.Context{
|
||||
HardwareFolders: []string{"downloaded_hardware", filepath.Join("..", "hardware"), "hardware"},
|
||||
}
|
||||
@@ -85,6 +86,7 @@ func TestLoadHardware(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestLoadHardwareMixingUserHardwareFolder(t *testing.T) {
|
||||
+ t.Skip("Can't run on Gentoo")
|
||||
ctx := &types.Context{
|
||||
HardwareFolders: []string{"downloaded_hardware", filepath.Join("..", "hardware"), "hardware", "user_hardware"},
|
||||
}
|
||||
@@ -155,6 +157,7 @@ func TestLoadHardwareMixingUserHardwareFolder(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestLoadHardwareWithBoardManagerFolderStructure(t *testing.T) {
|
||||
+ t.Skip("Can't run on Gentoo")
|
||||
ctx := &types.Context{
|
||||
HardwareFolders: []string{"downloaded_board_manager_stuff"},
|
||||
}
|
||||
@@ -203,6 +206,7 @@ func TestLoadHardwareWithBoardManagerFolderStructure(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestLoadLotsOfHardware(t *testing.T) {
|
||||
+ t.Skip("Can't run on Gentoo")
|
||||
ctx := &types.Context{
|
||||
HardwareFolders: []string{"downloaded_board_manager_stuff", "downloaded_hardware", filepath.Join("..", "hardware"), "hardware", "user_hardware"},
|
||||
}
|
||||
diff --git a/test/helper_tools_downloader.go b/test/helper_tools_downloader.go
|
||||
index 49aa847..ba77a57 100644
|
||||
--- a/src/github.com/arduino/arduino-builder/test/helper_tools_downloader.go
|
||||
+++ b/src/github.com/arduino/arduino-builder/test/helper_tools_downloader.go
|
||||
@@ -83,6 +83,7 @@ type Core struct {
|
||||
}
|
||||
|
||||
func DownloadCoresAndToolsAndLibraries(t *testing.T) {
|
||||
+ t.Skip("Gentoo skips tests requiring network");
|
||||
cores := []Core{
|
||||
Core{Maintainer: "arduino", Arch: "avr", Version: "1.6.10"},
|
||||
Core{Maintainer: "arduino", Arch: "sam", Version: "1.6.7"},
|
||||
@@ -177,6 +178,7 @@ func patchFiles(t *testing.T) {
|
||||
}
|
||||
|
||||
func download(t *testing.T, cores, boardsManagerCores, boardsManagerRedBearCores []Core, tools, toolsMultipleVersions, boardsManagerTools, boardsManagerRFduinoTools []Tool, libraries []Library) {
|
||||
+ t.Skip("Gentoo skips tests requiring network");
|
||||
allCoresDownloaded, err := allCoresAlreadyDownloadedAndUnpacked(HARDWARE_FOLDER, cores)
|
||||
NoError(t, err)
|
||||
if allCoresDownloaded &&
|
||||
diff --git a/test/target_board_resolver_test.go b/test/target_board_resolver_test.go
|
||||
index 49e0abe..7a50fe1 100644
|
||||
--- a/src/github.com/arduino/arduino-builder/test/target_board_resolver_test.go
|
||||
+++ b/src/github.com/arduino/arduino-builder/test/target_board_resolver_test.go
|
||||
@@ -39,6 +39,7 @@ import (
|
||||
)
|
||||
|
||||
func TestTargetBoardResolverUno(t *testing.T) {
|
||||
+ t.Skip("Can't run on Gentoo")
|
||||
ctx := &types.Context{
|
||||
HardwareFolders: []string{filepath.Join("..", "hardware"), "hardware", "downloaded_hardware"},
|
||||
FQBN: "arduino:avr:uno",
|
||||
@@ -64,6 +65,7 @@ func TestTargetBoardResolverUno(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestTargetBoardResolverDue(t *testing.T) {
|
||||
+ t.Skip("Can't run on Gentoo")
|
||||
ctx := &types.Context{
|
||||
HardwareFolders: []string{filepath.Join("..", "hardware"), "hardware", "downloaded_hardware"},
|
||||
FQBN: "arduino:sam:arduino_due_x",
|
||||
@@ -89,6 +91,7 @@ func TestTargetBoardResolverDue(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestTargetBoardResolverMega1280(t *testing.T) {
|
||||
+ t.Skip("Can't run on Gentoo")
|
||||
ctx := &types.Context{
|
||||
HardwareFolders: []string{filepath.Join("..", "hardware"), "hardware", "downloaded_hardware"},
|
||||
FQBN: "arduino:avr:mega:cpu=atmega1280",
|
||||
@@ -115,6 +118,7 @@ func TestTargetBoardResolverMega1280(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestTargetBoardResolverMega2560(t *testing.T) {
|
||||
+ t.Skip("Can't run on Gentoo")
|
||||
ctx := &types.Context{
|
||||
HardwareFolders: []string{filepath.Join("..", "hardware"), "hardware", "downloaded_hardware"},
|
||||
FQBN: "arduino:avr:mega:cpu=atmega2560",
|
||||
@@ -141,6 +145,7 @@ func TestTargetBoardResolverMega2560(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestTargetBoardResolverCustomYun(t *testing.T) {
|
||||
+ t.Skip("Can't run on Gentoo")
|
||||
ctx := &types.Context{
|
||||
HardwareFolders: []string{filepath.Join("..", "hardware"), "hardware", "downloaded_hardware", "user_hardware"},
|
||||
FQBN: "my_avr_platform:avr:custom_yun",
|
||||
@@ -167,6 +172,7 @@ func TestTargetBoardResolverCustomYun(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestTargetBoardResolverCustomCore(t *testing.T) {
|
||||
+ t.Skip("Can't run on Gentoo")
|
||||
ctx := &types.Context{
|
||||
HardwareFolders: []string{filepath.Join("..", "hardware"), "hardware", "downloaded_hardware", "user_hardware"},
|
||||
FQBN: "watterott:avr:attiny841:core=spencekonde,info=info",
|
||||
diff --git a/test/wipeout_build_path_if_build_options_changed_test.go b/test/wipeout_build_path_if_build_options_changed_test.go
|
||||
index 51bfe80..8501fb6 100644
|
||||
--- a/src/github.com/arduino/arduino-builder/test/wipeout_build_path_if_build_options_changed_test.go
|
||||
+++ b/src/github.com/arduino/arduino-builder/test/wipeout_build_path_if_build_options_changed_test.go
|
||||
@@ -42,6 +42,7 @@ import (
|
||||
)
|
||||
|
||||
func TestWipeoutBuildPathIfBuildOptionsChanged(t *testing.T) {
|
||||
+ t.Skip("Can't run in Gentoo")
|
||||
ctx := &types.Context{}
|
||||
|
||||
buildPath := SetupBuildPath(t, ctx)
|
||||
@@ -73,6 +74,7 @@ func TestWipeoutBuildPathIfBuildOptionsChanged(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestWipeoutBuildPathIfBuildOptionsChangedNoPreviousBuildOptions(t *testing.T) {
|
||||
+ t.Skip("Can't run in Gentoo")
|
||||
ctx := &types.Context{}
|
||||
|
||||
buildPath := SetupBuildPath(t, ctx)
|
@ -1,148 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit java-pkg-2 java-ant-2 gnome2-utils
|
||||
|
||||
DESCRIPTION="An open-source AVR electronics prototyping platform"
|
||||
HOMEPAGE="https://arduino.cc/ https://github.com/arduino/"
|
||||
|
||||
ARDUINO_DOCS=(
|
||||
"reference-1.6.6-3"
|
||||
"Galileo_help_files-1.6.2"
|
||||
"Edison_help_files-1.6.2"
|
||||
)
|
||||
|
||||
for docname in "${ARDUINO_DOCS[@]}"; do
|
||||
ARDUINO_DOCS_URI+=" https://downloads.arduino.cc/${docname}.zip -> ${PN}-${docname}.zip"
|
||||
done
|
||||
|
||||
AVR_VERSION="1.8.3"
|
||||
PLUGIN_VERSION="0.10.10"
|
||||
|
||||
SRC_URI="https://github.com/arduino/Arduino/archive/${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://downloads.arduino.cc/cores/avr-${AVR_VERSION}.tar.bz2 -> ${PN}-avr-${AVR_VERSION}.tar.bz2
|
||||
https://github.com/arduino-libraries/WiFi101-FirmwareUpdater-Plugin/releases/download/v${PLUGIN_VERSION}/WiFi101-Updater-ArduinoIDE-Plugin-${PLUGIN_VERSION}.zip -> ${PN}-WiFi101-Updater-ArduinoIDE-Plugin-${PLUGIN_VERSION}.zip
|
||||
doc? (
|
||||
${ARDUINO_DOCS_URI}
|
||||
)"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2.1 CC-BY-SA-3.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
CDEPEND="dev-embedded/arduino-builder"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
>=dev-util/astyle-3.1[java]
|
||||
dev-embedded/arduino-listserialportsc
|
||||
>=virtual/jre-1.8"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
app-arch/unzip
|
||||
>=virtual/jdk-1.8"
|
||||
|
||||
EANT_BUILD_TARGET="build"
|
||||
# don't run the default "javadoc" target, we don't have one.
|
||||
EANT_DOC_TARGET=""
|
||||
EANT_BUILD_XML="build/build.xml"
|
||||
EANT_EXTRA_ARGS=" -Dlight_bundle=1 -Dlocal_sources=1 -Dno_arduino_builder=1 -Dversion=${PV}"
|
||||
|
||||
RESTRICT="strip"
|
||||
QA_PREBUILT="usr/share/arduino/hardware/arduino/avr/firmwares/*"
|
||||
|
||||
S="${WORKDIR}/Arduino-${PV}"
|
||||
|
||||
PATCHES=(
|
||||
# We need to load system astyle/listserialportsc instead of bundled ones.
|
||||
"${FILESDIR}/${PN}-1.8.5-lib-loading.patch"
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
# We don't want to unpack tools, just move zip files into the work dir
|
||||
local a=( ${A} )
|
||||
unpack "${a[0]}"
|
||||
|
||||
cp "${DISTDIR}/${PN}-avr-${AVR_VERSION}.tar.bz2" "${S}/build/avr-${AVR_VERSION}.tar.bz2" || die
|
||||
cp "${DISTDIR}/${PN}-WiFi101-Updater-ArduinoIDE-Plugin-${PLUGIN_VERSION}.zip" "${S}/build/shared/WiFi101-Updater-ArduinoIDE-Plugin-${PLUGIN_VERSION}.zip" || die
|
||||
|
||||
if use doc; then
|
||||
local docname
|
||||
for docname in "${ARDUINO_DOCS[@]}"; do
|
||||
cp "${DISTDIR}/${PN}-${docname}.zip" "${S}/build/shared/${docname}.zip" || die
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Unbundle libastyle
|
||||
sed -i 's/\(target name="linux-libastyle-[a-zA-Z0-9]*"\)/\1 if="never"/g' "$S/build/build.xml" || die
|
||||
|
||||
# Unbundle avr toolchain
|
||||
sed -i 's/target name="avr-toolchain-bundle" unless="light_bundle"/target name="avr-toolchain-bundle" if="never"/' "$S/build/build.xml" || die
|
||||
|
||||
# Install avr hardware
|
||||
sed -i 's/target name="assemble-hardware" unless="light_bundle"/target name="assemble-hardware"/' "$S/build/build.xml" || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
use doc || EANT_EXTRA_ARGS+=" -Dno_docs=1"
|
||||
java-pkg-2_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${S}"/build/linux/work || die
|
||||
|
||||
# We need to replace relative paths for toolchain executable by paths to system ones.
|
||||
sed -i -e 's@^compiler.path=.*@compiler.path=/usr/bin/@' -e 's@^tools.avrdude.path=.*@tools.avrdude.path=/usr@' \
|
||||
-e 's@^tools.avrdude.config.path=.*@tools.avrdude.config.path=/etc/avrdude.conf@' hardware/arduino/avr/platform.txt || die
|
||||
|
||||
java-pkg_dojar lib/*.jar
|
||||
java-pkg_dolauncher ${PN} \
|
||||
--pwd "/usr/share/${PN}" \
|
||||
--main "processing.app.Base" \
|
||||
--java_args "-DAPP_DIR=/usr/share/${PN} -Djava.library.path=${EPREFIX}/usr/$(get_libdir)"
|
||||
|
||||
insinto "/usr/share/${PN}"
|
||||
|
||||
doins -r examples hardware lib tools
|
||||
|
||||
# In upstream's build process, we copy these fiels below from the bundled arduino-builder.
|
||||
# Here we do the same thing, but from the system arduino-builder.
|
||||
dosym "../../arduino-builder/platform.txt" "/usr/share/${PN}/hardware/platform.txt"
|
||||
dosym "../../arduino-builder/platform.keys.rewrite.txt" "/usr/share/${PN}/hardware/platform.keys.rewrite.txt"
|
||||
dosym "../../bin/arduino-builder" "/usr/share/${PN}/arduino-builder"
|
||||
|
||||
# hardware/tools/avr needs to exist or arduino-builder will
|
||||
# complain about missing required -tools arg
|
||||
dodir "/usr/share/${PN}/hardware/tools/avr"
|
||||
|
||||
if use doc; then
|
||||
HTML_DOCS=( reference )
|
||||
einstalldocs
|
||||
|
||||
# arduino expects its doc in its "main" directory. symlink it.
|
||||
dosym "../doc/${PF}/html/reference" "/usr/share/${PN}/reference"
|
||||
fi
|
||||
|
||||
# Install menu and icons
|
||||
domenu "${FILESDIR}/${PN}.desktop"
|
||||
cd lib/icons || die
|
||||
local icondir
|
||||
for icondir in *; do
|
||||
# icondir name is something like "24x24" we want the "24" part
|
||||
local iconsize=`cut -dx -f1 <<< "${icondir}"`
|
||||
newicon -s $iconsize \
|
||||
"${icondir}/apps/arduino.png" \
|
||||
"${PN}.png"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
[[ ! -x /usr/bin/avr-g++ ]] && ewarn "Missing avr-g++; you need to crossdev -s4 avr"
|
||||
}
|
@ -1,146 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit java-pkg-2 java-ant-2 gnome2-utils
|
||||
|
||||
DESCRIPTION="An open-source AVR electronics prototyping platform"
|
||||
HOMEPAGE="https://arduino.cc/ https://github.com/arduino/"
|
||||
|
||||
ARDUINO_DOCS=(
|
||||
"reference-1.6.6-3"
|
||||
"Galileo_help_files-1.6.2"
|
||||
"Edison_help_files-1.6.2"
|
||||
)
|
||||
|
||||
for docname in "${ARDUINO_DOCS[@]}"; do
|
||||
ARDUINO_DOCS_URI+=" https://downloads.arduino.cc/${docname}.zip -> ${PN}-${docname}.zip"
|
||||
done
|
||||
|
||||
SRC_URI="https://github.com/arduino/Arduino/archive/${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://downloads.arduino.cc/cores/avr-1.6.23.tar.bz2 -> ${PN}-avr-1.6.23.tar.bz2
|
||||
https://github.com/arduino-libraries/WiFi101-FirmwareUpdater-Plugin/releases/download/v0.9.2/WiFi101-Updater-ArduinoIDE-Plugin-0.9.2.zip -> ${PN}-WiFi101-Updater-ArduinoIDE-Plugin-0.9.2.zip
|
||||
doc? (
|
||||
${ARDUINO_DOCS_URI}
|
||||
)"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2.1 CC-BY-SA-3.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="doc"
|
||||
|
||||
CDEPEND="dev-embedded/arduino-builder"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
>=dev-util/astyle-3.1[java]
|
||||
dev-embedded/arduino-listserialportsc
|
||||
>=virtual/jre-1.8"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
app-arch/unzip
|
||||
>=virtual/jdk-1.8"
|
||||
|
||||
EANT_BUILD_TARGET="build"
|
||||
# don't run the default "javadoc" target, we don't have one.
|
||||
EANT_DOC_TARGET=""
|
||||
EANT_BUILD_XML="build/build.xml"
|
||||
EANT_EXTRA_ARGS=" -Dlight_bundle=1 -Dlocal_sources=1 -Dno_arduino_builder=1"
|
||||
|
||||
RESTRICT="strip"
|
||||
QA_PREBUILT="usr/share/arduino/hardware/arduino/avr/firmwares/*"
|
||||
|
||||
S="${WORKDIR}/Arduino-${PV}"
|
||||
|
||||
PATCHES=(
|
||||
# We need to load system astyle/listserialportsc instead of bundled ones.
|
||||
"${FILESDIR}/${PN}-1.8.5-lib-loading.patch"
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
# We don't want to unpack tools, just move zip files into the work dir
|
||||
unpack `echo ${A} | cut -d ' ' -f1`
|
||||
|
||||
cp "${DISTDIR}/${PN}-avr-1.6.23.tar.bz2" "${S}/build/avr-1.6.23.tar.bz2" || die
|
||||
cp "${DISTDIR}/${PN}-WiFi101-Updater-ArduinoIDE-Plugin-0.9.2.zip" "${S}/build/shared/WiFi101-Updater-ArduinoIDE-Plugin-0.9.2.zip"|| die
|
||||
|
||||
if use doc; then
|
||||
local docname
|
||||
for docname in "${ARDUINO_DOCS[@]}"; do
|
||||
cp "${DISTDIR}/${PN}-${docname}.zip" "${S}/build/shared/${docname}.zip" || die
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Unbundle libastyle
|
||||
sed -i 's/\(target name="linux-libastyle-[a-zA-Z0-9]*"\)/\1 if="never"/g' "$S/build/build.xml" || die
|
||||
|
||||
# Unbundle avr toolchain
|
||||
sed -i 's/target name="avr-toolchain-bundle" unless="light_bundle"/target name="avr-toolchain-bundle" if="never"/' "$S/build/build.xml" || die
|
||||
|
||||
# Install avr hardware
|
||||
sed -i 's/target name="assemble-hardware" unless="light_bundle"/target name="assemble-hardware"/' "$S/build/build.xml" || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if ! use doc; then
|
||||
EANT_EXTRA_ARGS+=" -Dno_docs=1"
|
||||
fi
|
||||
java-pkg-2_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${S}"/build/linux/work || die
|
||||
|
||||
# We need to replace relative paths for toolchain executable by paths to system ones.
|
||||
sed -i -e 's@^compiler.path=.*@compiler.path=/usr/bin/@' -e 's@^tools.avrdude.path=.*@tools.avrdude.path=/usr@' \
|
||||
-e 's@^tools.avrdude.config.path=.*@tools.avrdude.config.path=/etc/avrdude.conf@' hardware/arduino/avr/platform.txt || die
|
||||
|
||||
java-pkg_dojar lib/*.jar
|
||||
java-pkg_dolauncher ${PN} \
|
||||
--pwd "/usr/share/${PN}" \
|
||||
--main "processing.app.Base" \
|
||||
--java_args "-DAPP_DIR=/usr/share/${PN} -Djava.library.path=${EPREFIX}/usr/$(get_libdir)"
|
||||
|
||||
insinto "/usr/share/${PN}"
|
||||
|
||||
doins -r examples hardware lib tools
|
||||
|
||||
# In upstream's build process, we copy these fiels below from the bundled arduino-builder.
|
||||
# Here we do the same thing, but from the system arduino-builder.
|
||||
dosym "../../arduino-builder/platform.txt" "/usr/share/${PN}/hardware/platform.txt"
|
||||
dosym "../../arduino-builder/platform.keys.rewrite.txt" "/usr/share/${PN}/hardware/platform.keys.rewrite.txt"
|
||||
dosym "../../bin/arduino-builder" "/usr/share/${PN}/arduino-builder"
|
||||
|
||||
# hardware/tools/avr needs to exist or arduino-builder will
|
||||
# complain about missing required -tools arg
|
||||
dodir "/usr/share/${PN}/hardware/tools/avr"
|
||||
|
||||
if use doc; then
|
||||
HTML_DOCS=( reference )
|
||||
einstalldocs
|
||||
|
||||
# arduino expects its doc in its "main" directory. symlink it.
|
||||
dosym "../doc/${PF}/html/reference" "/usr/share/${PN}/reference"
|
||||
fi
|
||||
|
||||
# Install menu and icons
|
||||
domenu "${FILESDIR}/${PN}.desktop"
|
||||
cd lib/icons || die
|
||||
local icondir
|
||||
for icondir in *; do
|
||||
# icondir name is something like "24x24" we want the "24" part
|
||||
local iconsize=`cut -dx -f1 <<< "${icondir}"`
|
||||
newicon -s $iconsize \
|
||||
"${icondir}/apps/arduino.png" \
|
||||
"${PN}.png"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
[[ ! -x /usr/bin/avr-g++ ]] && ewarn "Missing avr-g++; you need to crossdev -s4 avr"
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST u-boot-2022.04.tar.bz2 17772787 BLAKE2B 5d2035130c0631f8f1b7f7963bedf71578a66994e3950eb103a404a08e85686cd971ba51e8172093ccb75d975101024bf2a94d4064763ad57ad8950c11092319 SHA512 113056e542db049eea3b1d1ccbbe52c79539a2f9bb6129d284ec9200dcffec7bd5969821913a9899631575b80991c84ad01bc845b4bba614e42e54466d9f0d64
|
||||
DIST u-boot-2022.07.tar.bz2 18087759 BLAKE2B bb78c7ccd56f12ebc622fb73d29cbf0a5db9d421133b191a6591845b4842b111145d2df649bae69011284bd468b8219ee0df20b61660ea4ec52006a93e14f09d SHA512 e1b3621dafac876c644ffb3d24b6e2380f5a78454c420a5b17d174e3f0b57731a95cfbff28ae7d0af4493f4bbf8d21e7f9236d61bb2414ed12295332b3d557b6
|
||||
|
@ -1,80 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
MY_P="u-boot-${PV/_/-}"
|
||||
DESCRIPTION="utilities for working with Das U-Boot"
|
||||
HOMEPAGE="https://www.denx.de/wiki/U-Boot/WebHome"
|
||||
SRC_URI="https://ftp.denx.de/pub/u-boot/${MY_P}.tar.bz2"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 ppc ~ppc64 ~riscv x86"
|
||||
IUSE="envtools"
|
||||
|
||||
RDEPEND="dev-libs/openssl:="
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i 's:\bpkg-config\b:${PKG_CONFIG}:g' \
|
||||
scripts/kconfig/{g,m,n,q}conf-cfg.sh \
|
||||
scripts/kconfig/Makefile \
|
||||
tools/Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
tc-export AR BUILD_CC CC PKG_CONFIG
|
||||
tc-export_build_env
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Unset a few KBUILD variables. Bug #540476
|
||||
unset KBUILD_OUTPUT KBUILD_SRC
|
||||
|
||||
local myemakeargs=(
|
||||
V=1
|
||||
AR="${AR}"
|
||||
CC="${CC}"
|
||||
HOSTCC="${BUILD_CC}"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS} ${BUILD_CPPFLAGS}"' $(HOSTCPPFLAGS)'
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}" tools-only_defconfig
|
||||
|
||||
emake "${myemakeargs[@]}" \
|
||||
NO_SDL=1 \
|
||||
HOSTSTRIP=: \
|
||||
STRIP=: \
|
||||
CONFIG_ENV_OVERWRITE=y \
|
||||
$(usex envtools envtools tools-all)
|
||||
}
|
||||
|
||||
src_test() { :; }
|
||||
|
||||
src_install() {
|
||||
cd tools || die
|
||||
|
||||
if ! use envtools; then
|
||||
dobin bmp_logo dumpimage fdtgrep gen_eth_addr img2srec mkenvimage mkimage
|
||||
fi
|
||||
|
||||
dobin env/fw_printenv
|
||||
|
||||
dosym fw_printenv /usr/bin/fw_setenv
|
||||
|
||||
insinto /etc
|
||||
doins env/fw_env.config
|
||||
|
||||
doman ../doc/mkimage.1
|
||||
}
|
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue