View previous topic :: View next topic |
Author |
Message |
velociraptux n00b
Joined: 21 Nov 2018 Posts: 8
|
Posted: Wed Nov 21, 2018 5:12 pm Post subject: Creation of ebuild for pioneer space sim |
|
|
Hi all.
I try to make an ebuild for the game pioneer.
https://pioneerspacesim.net/
In the compiling guide section of the game. There is only a debian based system tutorial.
Here are the necessary dependencies to compile the game
Code: | g++
automake
pkg-config
libcurl-dev
libsigc++-dev
libsigc++-2.0-dev
libsdl2-dev
libsdl2-image-dev
libfreetype6-dev
libvorbis-dev
libpng-dev
libassimp-dev >= 3.2
mesa-common-dev |
Most of them are developement programe (-dev) but this kind of file doesn't exist in gentoo. Only for dev-libs/libsigc++
I presume and i hope i have to take the software included in gentoo. So I created my ebuild by including them like this.
Am i right?
Code: | # Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Pioneer is a space adventure game set in our galaxy at the turn of the 31st century.
The game is open-ended, and you are free to eke out whatever kind of space-faring existence you can think of. Explore and trade between millions of star systems. Turn to a life of crime as a pirate, smuggler or bounty hunter. Travel through the territories of various factions fighting for power, freedom or self-determination. The universe is whatever you make of it."
HOMEPAGE="https://pioneerspacesim.net/"
SRC_URI="https://github.com/pioneerspacesim/pioneer/archive/master.zip"
LICENSE=""
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="
sys-devel/gcc
sys-devel/automake
dev-util/pkgconfig
net-misc/curl
dev-libs/libsigc++
media-libs/libsdl2
media-libs/sdl2-image
media-libs/freetype
media-libs/libvorbis
media-libs/libpng
media-libs/assimp
media-libs/mesa
"
RDEPEND="${DEPEND}" |
Here is what I tried:
Create a folder for my ebuild, and jump into it.
Code: | mkdir -p /usr/local/portage/game-simulation
mkdir -p /usr/local/portage/games-simulation/pioneerspacesim
cd $_ |
Put my ebuild inside and run the command for building it.
Code: | ebuild pioneerspacesim-20181101.ebuild manifest clean merge |
The terminal response:
Code: | ebuild pioneerspacesim-20181101.ebuild manifest clean merge
Appending /usr/local/portage to PORTDIR_OVERLAY...
!!! Repository 'x-portage' is missing masters attribute in '/usr/local/portage/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility
>>> Creating Manifest for /usr/local/portage/games-simulation/pioneerspacesim
* master.zip BLAKE2B SHA512 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking master.zip to /var/tmp/portage/games-simulation/pioneerspacesim-20181101/work
>>> Source unpacked in /var/tmp/portage/games-simulation/pioneerspacesim-20181101/work
* ERROR: games-simulation/pioneerspacesim-20181101::x-portage failed (prepare phase):
* The source directory '/var/tmp/portage/games-simulation/pioneerspacesim-20181101/work/pioneerspacesim-20181101' doesn't exist
*
* Call stack:
* ebuild.sh, line 792: Called __ebuild_main 'prepare'
* phase-functions.sh, line 1068: Called __dyn_prepare
* phase-functions.sh, line 384: Called die
* The specific snippet of code:
* die "The source directory '${S}' doesn't exist"
*
* If you need support, post the output of `emerge --info '=games-simulation/pioneerspacesim-20181101::x-portage'`,
* the complete build log and the output of `emerge -pqv '=games-simulation/pioneerspacesim-20181101::x-portage'`.
* The complete build log is located at '/var/tmp/portage/games-simulation/pioneerspacesim-20181101/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/games-simulation/pioneerspacesim-20181101/temp/environment'.
* Working directory: '/var/tmp/portage/games-simulation/pioneerspacesim-20181101/homedir'
* S: '/var/tmp/portage/games-simulation/pioneerspacesim-20181101/work/pioneerspacesim-20181101'
* Messages for package games-simulation/pioneerspacesim-20181101:
* ERROR: games-simulation/pioneerspacesim-20181101::x-portage failed (prepare phase):
* The source directory '/var/tmp/portage/games-simulation/pioneerspacesim-20181101/work/pioneerspacesim-20181101' doesn't exist
*
* Call stack:
* ebuild.sh, line 792: Called __ebuild_main 'prepare'
* phase-functions.sh, line 1068: Called __dyn_prepare
* phase-functions.sh, line 384: Called die
* The specific snippet of code:
* die "The source directory '${S}' doesn't exist"
*
* If you need support, post the output of `emerge --info '=games-simulation/pioneerspacesim-20181101::x-portage'`,
* the complete build log and the output of `emerge -pqv '=games-simulation/pioneerspacesim-20181101::x-portage'`.
* The complete build log is located at '/var/tmp/portage/games-simulation/pioneerspacesim-20181101/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/games-simulation/pioneerspacesim-20181101/temp/environment'.
* Working directory: '/var/tmp/portage/games-simulation/pioneerspacesim-20181101/homedir'
* S: '/var/tmp/portage/games-simulation/pioneerspacesim-20181101/work/pioneerspacesim-20181101' |
If anyone can help me make this wonderful game work on gentoo, that would be great. Thanks
(sorry for my poor English)
Last edited by velociraptux on Fri Nov 23, 2018 3:26 am; edited 1 time in total |
|
Back to top |
|
|
Juippisi Developer
Joined: 30 Sep 2005 Posts: 727 Location: /home
|
Posted: Wed Nov 21, 2018 5:50 pm Post subject: |
|
|
This looks a bit hard for a first one. Prepare to do some work, and studying of build systems. Let's start with simple one, though:
your SRC_URI is wrong. https://github.com/pioneerspacesim/pioneer/archive/20181127_test.tar.gz this is their latest tagged release so just add that to SRC_URI, rename your ebuild to pioneerspacesim-20181127.ebuild and add S="${WORKDIR}/pioneer-${PV}_test" after RDEPEND. Then you should get forward from that point.
However, it looks like the build system either uses bootstrap or CMAKE, so you might need to use cmake-utils.eclass or autotools.eclass. With autotools it could be as easy as just inheriting autotools, and calling eautoreconf in src_prepare() function. Literally look for examples from the portage tree to get an idea. If its CMake, it can be as easy as inheriting cmake-utils, and it can probably do the rest for you. But report what problems you find. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30959 Location: here
|
Posted: Wed Nov 21, 2018 7:33 pm Post subject: |
|
|
velociraptux welcome to gentoo forum!
Here an ebuild with autotools for pioneerspacesim-20180203 (not tested)
pioneerspacesim-20180203.ebuild: | # Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools
DESCRIPTION="Pioneer is a space adventure game set in our galaxy at the turn of the 31st century."
HOMEPAGE="https://pioneerspacesim.net/"
SRC_URI="https://github.com/${PN}/pioneer/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE=""
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="
net-misc/curl
dev-libs/libsigc++
media-libs/libsdl2
media-libs/sdl2-image
media-libs/freetype
media-libs/libvorbis
media-libs/libpng
media-libs/assimp
media-libs/mesa
"
RDEPEND="${DEPEND}"
S="${WORKDIR}/pioneer-${PV}"
src_prepare() {
default
eautoreconf
} |
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
velociraptux n00b
Joined: 21 Nov 2018 Posts: 8
|
Posted: Wed Nov 21, 2018 8:00 pm Post subject: |
|
|
Thanks for the reply.
I modify my ebuild like this:
Code: | # Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Pioneer is a space adventure game set in our galaxy at the turn of the 31st century.
The game is open-ended, and you are free to eke out whatever kind of space-faring existence you can think of. Explore and trade between millions of star systems. Turn to a life of crime as a pirate, smuggler or bounty hunter. Travel through the territories of various factions fighting for power, freedom or self-determination. The universe is whatever you make of it."
HOMEPAGE="https://pioneerspacesim.net/"
SRC_URI="https://github.com/pioneerspacesim/pioneer/archive/20181127_test.tar.gz"
LICENSE=""
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="
sys-devel/gcc
sys-devel/automake
dev-util/pkgconfig
net-misc/curl
dev-libs/libsigc++
media-libs/libsdl2
media-libs/sdl2-image
media-libs/freetype
media-libs/libvorbis
media-libs/libpng
media-libs/assimp
media-libs/mesa
"
RDEPEND="${DEPEND}"
S="${WORKDIR}/pioneer-${PV}_test"
inherit autotools
src_prepare() {
eapply_user
eautoreconf
}
|
And after a
Code: | ebuild pioneerspacesim-20181127.ebuild manifest clean merge |
Ihave an error with sigc++-2.0
Code: | Appending /usr/local/portage to PORTDIR_OVERLAY...
!!! Repository 'x-portage' is missing masters attribute in '/usr/local/portage/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility
>>> Creating Manifest for /usr/local/portage/games-simulation/pioneerspacesim
* 20181127_test.tar.gz BLAKE2B SHA512 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking 20181127_test.tar.gz to /var/tmp/portage/games-simulation/pioneerspacesim-20181127/work
>>> Source unpacked in /var/tmp/portage/games-simulation/pioneerspacesim-20181127/work
>>> Preparing source in /var/tmp/portage/games-simulation/pioneerspacesim-20181127/work/pioneer-20181127_test ...
* Running eautoreconf in '/var/tmp/portage/games-simulation/pioneerspacesim-20181127/work/pioneer-20181127_test' ...
* Running aclocal ... [ ok ]
* Running autoconf --force ... [ ok ]
* Running automake --add-missing --copy --foreign --force-missing ... [ ok ]
* Running elibtoolize in: pioneer-20181127_test/
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/games-simulation/pioneerspacesim-20181127/work/pioneer-20181127_test ...
* econf: updating pioneer-20181127_test/config.sub with /usr/share/gnuconfig/config.sub
* econf: updating pioneer-20181127_test/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/pioneerspacesim-20181127 --htmldir=/usr/share/doc/pioneerspacesim-20181127/html --libdir=/usr/lib64
checking for a BSD-compatible install... /usr/lib/portage/python3.6/ebuild-helpers/xattr/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking whether x86_64-pc-linux-gnu-gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of x86_64-pc-linux-gnu-gcc... none
checking for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether x86_64-pc-linux-gnu-g++ accepts -g... yes
checking dependency style of x86_64-pc-linux-gnu-g++... none
checking for an ANSI C-conforming const... yes
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip
checking whether make supports nested variables... (cached) yes
checking to see if x86_64-pc-linux-gnu-g++ supports -std=c++11... yes
checking to see if x86_64-pc-linux-gnu-gcc/x86_64-pc-linux-gnu-g++ supports -Wall... yes
checking to see if x86_64-pc-linux-gnu-gcc/x86_64-pc-linux-gnu-g++ supports -Wformat... yes
checking to see if x86_64-pc-linux-gnu-gcc/x86_64-pc-linux-gnu-g++ supports -Wstrict-aliasing=2... yes
checking to see if x86_64-pc-linux-gnu-gcc/x86_64-pc-linux-gnu-g++ supports -Wmissing-format-attribute... yes
checking to see if x86_64-pc-linux-gnu-gcc/x86_64-pc-linux-gnu-g++ supports -Wmissing-noreturn... yes
checking to see if x86_64-pc-linux-gnu-gcc/x86_64-pc-linux-gnu-g++ supports -Wdisabled-optimization... yes
checking to see if x86_64-pc-linux-gnu-gcc/x86_64-pc-linux-gnu-g++ supports -Wfloat-equal... yes
checking to see if x86_64-pc-linux-gnu-gcc/x86_64-pc-linux-gnu-g++ supports -Wshadow... yes
checking to see if x86_64-pc-linux-gnu-gcc/x86_64-pc-linux-gnu-g++ supports -Wcast-qual... yes
checking to see if x86_64-pc-linux-gnu-gcc/x86_64-pc-linux-gnu-g++ supports -Wcast-align... yes
checking to see if x86_64-pc-linux-gnu-gcc/x86_64-pc-linux-gnu-g++ supports -Wformat -Wformat-security... yes
checking to see if x86_64-pc-linux-gnu-gcc supports -Wno-format-zero-length... yes
checking to see if x86_64-pc-linux-gnu-gcc supports -Werror-implicit-function-declaration... yes
checking to see if x86_64-pc-linux-gnu-g++ supports -Wstrict-null-sentinel... yes
checking to see if x86_64-pc-linux-gnu-g++ supports -Wold-style-cast... yes
checking to see if x86_64-pc-linux-gnu-g++ supports -Wsign-promo... yes
configure: WARNING: Using the default value for PIONEER_DATA_DIR.
configure: WARNING: Installing is NOT recommended.
configure: WARNING: IF YOU ARE PACKAGING PIONEER, SET THIS VARIABLE!
configure: WARNING: To install: make install DESTDIR=/path/to/install/dir/
configure: WARNING: The trailing path separator is required.
configure: WARNING: The installed Pioneer is only runnable from that directory.
checking for x86_64-pc-linux-gnu-pkg-config... /usr/bin/x86_64-pc-linux-gnu-pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for sigc++-2.0... no
configure: error: Package requirements (sigc++-2.0) were not met:
No package 'sigc++-2.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables SIGC_CFLAGS
and SIGC_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/games-simulation/pioneerspacesim-20181127/work/pioneer-20181127_test/config.log
* ERROR: games-simulation/pioneerspacesim-20181127::x-portage failed (configure phase):
* econf failed
*
* Call stack:
* ebuild.sh, line 124: Called src_configure
* environment, line 1452: Called default
* phase-functions.sh, line 868: Called default_src_configure
* phase-functions.sh, line 903: Called __eapi2_src_configure
* phase-helpers.sh, line 835: Called econf
* phase-helpers.sh, line 718: Called __helpers_die 'econf failed'
* isolated-functions.sh, line 121: Called die
* The specific snippet of code:
* die "$@"
*
* If you need support, post the output of `emerge --info '=games-simulation/pioneerspacesim-20181127::x-portage'`,
* the complete build log and the output of `emerge -pqv '=games-simulation/pioneerspacesim-20181127::x-portage'`.
* The complete build log is located at '/var/tmp/portage/games-simulation/pioneerspacesim-20181127/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/games-simulation/pioneerspacesim-20181127/temp/environment'.
* Working directory: '/var/tmp/portage/games-simulation/pioneerspacesim-20181127/work/pioneer-20181127_test'
* S: '/var/tmp/portage/games-simulation/pioneerspacesim-20181127/work/pioneer-20181127_test'
* Messages for package games-simulation/pioneerspacesim-20181127:
* ERROR: games-simulation/pioneerspacesim-20181127::x-portage failed (configure phase):
* econf failed
*
* Call stack:
* ebuild.sh, line 124: Called src_configure
* environment, line 1452: Called default
* phase-functions.sh, line 868: Called default_src_configure
* phase-functions.sh, line 903: Called __eapi2_src_configure
* phase-helpers.sh, line 835: Called econf
* phase-helpers.sh, line 718: Called __helpers_die 'econf failed'
* isolated-functions.sh, line 121: Called die
* The specific snippet of code:
* die "$@"
*
* If you need support, post the output of `emerge --info '=games-simulation/pioneerspacesim-20181127::x-portage'`,
* the complete build log and the output of `emerge -pqv '=games-simulation/pioneerspacesim-20181127::x-portage'`.
* The complete build log is located at '/var/tmp/portage/games-simulation/pioneerspacesim-20181127/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/games-simulation/pioneerspacesim-20181127/temp/environment'.
* Working directory: '/var/tmp/portage/games-simulation/pioneerspacesim-20181127/work/pioneer-20181127_test'
* S: '/var/tmp/portage/games-simulation/pioneerspacesim-20181127/work/pioneer-20181127_test' |
I think the pioneer code is looking for sigc++-2.0 while the version of gentoo is just called libsigc++
Any suggestion? |
|
Back to top |
|
|
velociraptux n00b
Joined: 21 Nov 2018 Posts: 8
|
Posted: Wed Nov 21, 2018 8:55 pm Post subject: |
|
|
Ok i find
The ebuild don't install the dependency before configuring the source.
I try to figure out why.
After
It works.
Now i want my ebuild to install dependency before doing the rest. |
|
Back to top |
|
|
velociraptux n00b
Joined: 21 Nov 2018 Posts: 8
|
Posted: Wed Nov 21, 2018 9:40 pm Post subject: |
|
|
Ok
ebuild command don't emerge dependency, emerge do.
For that i need to edit my /etc/portage/make.conf and add the line:
Code: | PORTDIR_OVERLAY=/usr/local/portage |
and:
Code: | emerge pioneerspacesim-20181127.ebuild |
Everithing work find during the compilation, but when i try to run the game with:
The terminal say me this:
Code: | ver on: Linux
System Name: Linux
Host Name: gentux
Release(Kernel) Version: 4.14.78-gentoo
Kernel Build Timestamp: #1 SMP Tue Nov 20 02:58:47 CET 2018
Machine Arch: x86_64
Domain Name: (none)
couldn't open language file 'lang/core/en.json'
couldn't load language resource core/en
couldn't open language file 'lang/core/en.json'
core/en: token 'AIR_PROCESSORS' not found
core/en: token 'ALERT_CANCELLED' not found
core/en: token 'ALLEGIANCE' not found
core/en: token 'ALT' not found
core/en: token 'AND_HIGHLY_COMPLEX_ECOSYSTEM' not found
core/en: token 'AND_INDIGENOUS_MICROBIAL_LIFE' not found
core/en: token 'AND_INDIGENOUS_PLANT_LIFE' not found
core/en: token 'ANIMAL_MEAT' not found
core/en: token 'APOAPSIS_DISTANCE' not found
core/en: token 'AR_ATMOSPHERE' not found
core/en: token 'ASTEROID' not found
core/en: token 'AUTOMATIC_SYSTEM_SELECTION' not found
core/en: token 'AUTOPILOT_CONTROL' not found
core/en: token 'AUTOPILOT_ON' not found
core/en: token 'AXIAL_TILT' not found
core/en: token 'A_FEW_THOUSAND' not found
core/en: token 'BATTLE_WEAPONS' not found
core/en: token 'BINARY_SYSTEM' not found
core/en: token 'BODIES' not found
core/en: token 'BODY' not found
core/en: token 'BROWN_DWARF' not found
core/en: token 'BUTTON' not found
core/en: token 'CAMERA_BOTTOM_VIEW' not found
core/en: token 'CAMERA_FRONT_VIEW' not found
core/en: token 'CAMERA_LEFT_VIEW' not found
core/en: token 'CAMERA_REAR_VIEW' not found
core/en: token 'CAMERA_RIGHT_VIEW' not found
core/en: token 'CAMERA_TOP_VIEW' not found
core/en: token 'CANT_SAVE_DEAD_PLAYER' not found
core/en: token 'CANT_SAVE_IN_HYPERSPACE' not found
core/en: token 'CAPITALIST' not found
core/en: token 'CARBON_ORE' not found
core/en: token 'CARGO' not found
core/en: token 'CARGO_BAY_LIFE_SUPPORT_LOST' not found
core/en: token 'CARGO_N' not found
core/en: token 'CARGO_SCOOP_ACTIVE_1_TONNE_X_COLLECTED' not found
core/en: token 'CARGO_SCOOP_ATTEMPTED' not found
core/en: token 'CH4_ATMOSPHERE' not found
core/en: token 'CLEARANCE_ALREADY_GRANTED_BAY_N' not found
core/en: token 'CLEARANCE_DENIED_NO_BAYS' not found
core/en: token 'CLEARANCE_DENIED_TOO_FAR' not found
core/en: token 'CLEARANCE_GRANTED_BAY_N' not found
core/en: token 'CO2_ATMOSPHERE' not found
core/en: token 'COMMA_HIGHLY_VOLCANIC' not found
core/en: token 'COMMODITY_NONE' not found
core/en: token 'COMMODITY_TRADE_ANALYSIS_COMPARE' not found
core/en: token 'COMMODITY_TRADE_ANALYSIS_SELF' not found
core/en: token 'COMMS' not found
core/en: token 'COMMUNIST' not found
core/en: token 'COMPUTERS' not found
core/en: token 'COMPUTER_HEADING_CONTROL' not found
core/en: token 'COMPUTER_SPEED_CONTROL' not found
core/en: token 'CONSUMER_GOODS' not found
core/en: token 'CONTROLS' not found
core/en: token 'CORPORATE_SYSTEM' not found
core/en: token 'COULD_NOT_OPEN_FILENAME' not found
core/en: token 'COUNT_ON_SURFACE' not found
core/en: token 'COUNT_STARPORTS' not found
core/en: token 'CO_ATMOSPHERE' not found
core/en: token 'CTRL' not found
core/en: token 'CURRENT_SYSTEM' not found
core/en: token 'DATE_DUE_N' not found
core/en: token 'DAY_LENGTH' not found
core/en: token 'DECREASE_RADAR_RANGE' not found
core/en: token 'DECREASE_SET_SPEED' not found
core/en: token 'DECREASE_TIME_ACCELERATION' not found
core/en: token 'DEMOGRAPHICS' not found
core/en: token 'DESTINATION' not found
core/en: token 'DIRECTION' not found
core/en: token 'DISTANCE_LY' not found
core/en: token 'DOCKED' not found
core/en: token 'DOCKING' not found
core/en: token 'DOCKING_CLEARANCE_EXPIRED' not found
core/en: token 'DOWNGRADING_ALERT_STATUS' not found
core/en: token 'DRAW_OUT_RANGE_LABELS' not found
core/en: token 'DRAW_UNINHABITED_LABELS' not found
core/en: token 'DRAW_VERTICAL_LINES' not found
core/en: token 'EARTH' not found
core/en: token 'EARTH_FEDERATION_COLONIAL_RULE' not found
core/en: token 'EARTH_FEDERATION_DEMOCRACY' not found
core/en: token 'ECCENTRICITY' not found
core/en: token 'ECONOMIC_INFO' not found
core/en: token 'ECONOMY_TYPE' not found
core/en: token 'EQUATORIAL_RADIUS_TO_POLAR_RADIUS_RATIO' not found
core/en: token 'EXACT_MATCH_X' not found
core/en: token 'EXTENSIVE_MINING' not found
core/en: token 'EXTERNAL_ATMOSPHERIC_PRESSURE' not found
core/en: token 'EXTERNAL_VIEW' not found
core/en: token 'FARM_MACHINERY' not found
core/en: token 'FERTILIZER' not found
core/en: token 'FIRE_LASER' not found
core/en: token 'FIRE_MISSILE' not found
core/en: token 'FLYBY_VIEW' not found
core/en: token 'FOLLOWING_SELECTION' not found
core/en: token 'FRUIT_AND_VEG' not found
core/en: token 'FUEL_SCOOP_ACTIVE_N_TONNES_H_COLLECTED' not found
core/en: token 'GALACTIC_VIEW' not found
core/en: token 'GALAXY_SECTOR_VIEW' not found
core/en: token 'GAME_LOAD_CANNOT_OPEN' not found
core/en: token 'GAME_LOAD_CORRUPT' not found
core/en: token 'GAME_LOAD_WRONG_VERSION' not found
core/en: token 'GAME_SAVED_TO' not found
core/en: token 'GAME_SAVE_CANNOT_WRITE' not found
core/en: token 'GENERAL_VIEW_CONTROLS' not found
core/en: token 'GOVERNMENT_TYPE' not found
core/en: token 'GRAIN' not found
core/en: token 'HAND_WEAPONS' not found
core/en: token 'HARD_CAPITALIST' not found
core/en: token 'HAT' not found
core/en: token 'HEADING_LOCK_ANTINORMAL' not found
core/en: token 'HEADING_LOCK_BACKWARD' not found
core/en: token 'HEADING_LOCK_FORWARD' not found
core/en: token 'HEADING_LOCK_KILLROT' not found
core/en: token 'HEADING_LOCK_NORMAL' not found
core/en: token 'HEADING_LOCK_RADIALLY_INWARD' not found
core/en: token 'HEADING_LOCK_RADIALLY_OUTWARD' not found
core/en: token 'HEAVY_INDUSTRY' not found
core/en: token 'HE_ATMOSPHERE' not found
core/en: token 'HIGHLY_VOLCANIC' not found
core/en: token 'HIGH_POPULATION_OUTDOOR_WORLD' not found
core/en: token 'HULL_INTEGRITY' not found
core/en: token 'HULL_TEMP' not found
core/en: token 'HYDROGEN' not found
core/en: token 'HYPERSPACE' not found
core/en: token 'HYPERSPACE_ARRIVAL_CLOUD' not found
core/en: token 'HYPERSPACE_ARRIVAL_CLOUD_REMNANT' not found
core/en: token 'HYPERSPACE_DEPARTURE_CLOUD' not found
core/en: token 'HYPERSPACE_JUMP_ABORT' not found
core/en: token 'HYPERSPACE_JUMP_ABORTED' not found
core/en: token 'HYPERSPACE_JUMP_DISABLED' not found
core/en: token 'HYPERSPACE_JUMP_ENGAGE' not found
core/en: token 'HYPERSPACE_JUMP_FORBIDDEN' not found
core/en: token 'HYPERSPACE_TARGET' not found
core/en: token 'H_ATMOSPHERE' not found
core/en: token 'ICE_WORLD' not found
core/en: token 'ILLEGAL_CURRENT_SYSTEM' not found
core/en: token 'ILLEGAL_GOODS' not found
core/en: token 'IMPERIAL_RULE' not found
core/en: token 'INCREASE_RADAR_RANGE' not found
core/en: token 'INCREASE_SET_SPEED' not found
core/en: token 'INCREASE_TIME_ACCELERATION' not found
core/en: token 'INDUSTRIAL_COLONY' not found
core/en: token 'INDUSTRIAL_HUB_SYSTEM' not found
core/en: token 'INDUSTRIAL_MACHINERY' not found
core/en: token 'INTERNAL_VIEW' not found
core/en: token 'JOY' not found
core/en: token 'JOYSTICK_INPUT' not found
core/en: token 'JOY_AXIS' not found
core/en: token 'L4L5_DISPLAY_MODE_TOGGLE' not found
core/en: token 'LANDED' not found
core/en: token 'LANG_NAME' not found
core/en: token 'LARGE' not found
core/en: token 'LARGE_GAS_GIANT' not found
core/en: token 'LASER_FIRE_DETECTED' not found
core/en: token 'LATITUDE' not found
core/en: token 'LEGAL_CURRENT_SYSTEM' not found
core/en: token 'LIBERAL_DEMOCRACY' not found
core/en: token 'LIQUID_OXYGEN' not found
core/en: token 'LIQUOR' not found
core/en: token 'LIVE_ANIMALS' not found
core/en: token 'LOCKED' not found
core/en: token 'LONGITUDE' not found
core/en: token 'MAJOR_EXPORTS' not found
core/en: token 'MAJOR_EXPORT_CURRENT_SYSTEM' not found
core/en: token 'MAJOR_IMPORTS' not found
core/en: token 'MAJOR_IMPORT_CURRENT_SYSTEM' not found
core/en: token 'MANUAL_CONTROL' not found
core/en: token 'MANUAL_CONTROL_MODE' not found
core/en: token 'MAP_LOCK_HYPERSPACE_TARGET' not found
core/en: token 'MAP_TOGGLE_INFO_PANEL' not found
core/en: token 'MAP_TOGGLE_SELECTION_FOLLOW_VIEW' not found
core/en: token 'MAP_VIEW_ROTATE_DOWN' not found
core/en: token 'MAP_VIEW_ROTATE_LEFT' not found
core/en: token 'MAP_VIEW_ROTATE_RIGHT' not found
core/en: token 'MAP_VIEW_ROTATE_UP' not found
core/en: token 'MAP_VIEW_SHIFT_BACKWARD' not found
core/en: token 'MAP_VIEW_SHIFT_DOWN' not found
core/en: token 'MAP_VIEW_SHIFT_FORWARD' not found
core/en: token 'MAP_VIEW_SHIFT_LEFT' not found
core/en: token 'MAP_VIEW_SHIFT_RIGHT' not found
core/en: token 'MAP_VIEW_SHIFT_UP' not found
core/en: token 'MAP_WARP_TO_CURRENT_SYSTEM' not found
core/en: token 'MAP_WARP_TO_HYPERSPACE_TARGET' not found
core/en: token 'MAP_WARP_TO_SELECTED_SYSTEM' not found
core/en: token 'MASS' not found
core/en: token 'MASSIVE' not found
core/en: token 'MASS_N_TONNES' not found
core/en: token 'MEDICINES' not found
core/en: token 'MEDIUM_GAS_GIANT' not found
core/en: token 'MESSAGE_FROM_X' not found
core/en: token 'META' not found
core/en: token 'METAL_ALLOYS' not found
core/en: token 'METAL_ORE' not found
core/en: token 'MILITARY_DICTATORSHIP' not found
core/en: token 'MILITARY_FUEL' not found
core/en: token 'MINING_COLONY' not found
core/en: token 'MINING_MACHINERY' not found
core/en: token 'MINOR_EXPORTS' not found
core/en: token 'MINOR_EXPORT_CURRENT_SYSTEM' not found
core/en: token 'MINOR_IMPORTS' not found
core/en: token 'MINOR_IMPORT_CURRENT_SYSTEM' not found
core/en: token 'MISCELLANEOUS' not found
core/en: token 'MISSILE' not found
core/en: token 'MIXED_ECONOMY' not found
core/en: token 'MONTH_APR' not found
core/en: token 'MONTH_AUG' not found
core/en: token 'MONTH_DEC' not found
core/en: token 'MONTH_FEB' not found
core/en: token 'MONTH_JAN' not found
core/en: token 'MONTH_JUL' not found
core/en: token 'MONTH_JUN' not found
core/en: token 'MONTH_MAR' not found
core/en: token 'MONTH_MAY' not found
core/en: token 'MONTH_NOV' not found
core/en: token 'MONTH_OCT' not found
core/en: token 'MONTH_SEP' not found
core/en: token 'NAME_OBJECT' not found
core/en: token 'NARCOTICS' not found
core/en: token 'NAVIGATION_STAR_MAPS' not found
core/en: token 'NAVIGATION_TARGETS_IN_THIS_SYSTEM' not found
core/en: token 'NERVE_GAS' not found
core/en: token 'NOT_FOUND' not found
core/en: token 'NOT_FOUND_BEST_MATCH_X' not found
core/en: token 'NOW' not found
core/en: token 'NO_ALERT' not found
core/en: token 'NO_CENTRAL_GOVERNANCE' not found
core/en: token 'NO_ESTABLISHED_ORDER' not found
core/en: token 'NO_HYPERDRIVE' not found
core/en: token 'NO_REGISTERED_INHABITANTS' not found
core/en: token 'NO_TARGET_SELECTED' not found
core/en: token 'NUMBER_DAYS' not found
core/en: token 'NUMBER_DECIMAL_POINT' not found
core/en: token 'NUMBER_G' not found
core/en: token 'NUMBER_GROUP_MIN' not found
core/en: token 'NUMBER_GROUP_NUM' not found
core/en: token 'NUMBER_GROUP_SEP' not found
core/en: token 'NUMBER_HOURS' not found
core/en: token 'NUMBER_LY' not found
core/en: token 'NUMBER_TONNES' not found
core/en: token 'N_ATMOSPHERE' not found
core/en: token 'N_CELSIUS' not found
core/en: token 'N_DAYS' not found
core/en: token 'N_DEGREES' not found
core/en: token 'N_EARTH_DAYS' not found
core/en: token 'N_WHATEVER_MASSES' not found
core/en: token 'N_WHATEVER_RADII' not found
core/en: token 'N_YEARS' not found
core/en: token 'O2_ATMOSPHERE' not found
core/en: token 'OCEANICWORLD' not found
core/en: token 'ORBITAL_PERIOD' not found
core/en: token 'ORBITAL_STARPORT' not found
core/en: token 'OUTDOOR_AGRICULTURAL_WORLD' not found
core/en: token 'OVER_N_BILLION' not found
core/en: token 'OVER_N_MILLION' not found
core/en: token 'PASSENGER_CABIN' not found
core/en: token 'PAUSED' not found
core/en: token 'PERIAPSIS_DISTANCE' not found
core/en: token 'PIONEER' not found
core/en: token 'PITCH' not found
core/en: token 'PITCH_DOWN' not found
core/en: token 'PITCH_UP' not found
core/en: token 'PLANETARY_INFO' not found
core/en: token 'PLANET_CONTAINING_LIQUID_WATER' not found
core/en: token 'PLANET_WITH_SOME_ICE' not found
core/en: token 'PLANNED_ECONOMY' not found
core/en: token 'PLANNER_RESET_FACTOR' not found
core/en: token 'PLANNER_RESET_NORMAL' not found
core/en: token 'PLANNER_RESET_PROGRADE' not found
core/en: token 'PLANNER_RESET_RADIAL' not found
core/en: token 'PLANNER_RESET_START' not found
core/en: token 'PLASTICS' not found
core/en: token 'PLUTOCRATIC_DICTATORSHIP' not found
core/en: token 'POPULATION' not found
core/en: token 'PRECIOUS_METALS' not found
core/en: token 'PRESSURE_N_ATMOSPHERES' not found
core/en: token 'QUADRUPLE_SYSTEM' not found
core/en: token 'RADAR_CONTROL' not found
core/en: token 'RADIOACTIVES' not found
core/en: token 'RADIUS' not found
core/en: token 'RECENTLY_EXPLORED_SYSTEM' not found
core/en: token 'RESET' not found
core/en: token 'RESET_ORIENTATION_AND_ZOOM' not found
core/en: token 'ROBOTS' not found
core/en: token 'ROCKY_PLANET' not found
core/en: token 'ROCKY_PLANET_CONTAINING_COME_LIQUIDS' not found
core/en: token 'ROLL' not found
core/en: token 'ROLL_LEFT' not found
core/en: token 'ROLL_RIGHT' not found
core/en: token 'ROTATE_DOWN' not found
core/en: token 'ROTATE_LEFT' not found
core/en: token 'ROTATE_RIGHT' not found
core/en: token 'ROTATE_UP' not found
core/en: token 'ROTATIONAL_PERIOD' not found
core/en: token 'ROTATION_DAMPING_OFF' not found
core/en: token 'ROTATION_DAMPING_ON' not found
core/en: token 'RUBBISH' not found
core/en: token 'SCREENSHOT_FILENAME_TEMPLATE' not found
core/en: token 'SEARCH' not found
core/en: token 'SEARCH_MAP' not found
core/en: token 'SECTOR_COORDINATES' not found
core/en: token 'SECTOR_MAP_VIEW' not found
core/en: token 'SECTOR_X_Y_Z' not found
core/en: token 'SELECTED_SYSTEM' not found
core/en: token 'SELECT_A_TARGET' not found
core/en: token 'SELECT_LOW_THRUST_POWER_LEVEL' not found
core/en: token 'SEMI_MAJOR_AXIS' not found
core/en: token 'SET_HYPERSPACE_DESTINATION_TO' not found
core/en: token 'SET_HYPERSPACE_TARGET_TO_FOLLOW_THIS_DEPARTURE' not found
core/en: token 'SET_LOW_THRUST_POWER_LEVEL_TO_X_PERCENT' not found
core/en: token 'SET_NAVTARGET_TO' not found
core/en: token 'SET_SPEED_KM_S' not found
core/en: token 'SET_SPEED_M_S' not found
core/en: token 'SHIELD_INTEGRITY' not found
core/en: token 'SHIELD_STRENGTH_N' not found
core/en: token 'SHIFT' not found
core/en: token 'SHIP' not found
core/en: token 'SHIPS_DISPLAY_MODE_TOGGLE' not found
core/en: token 'SHIP_DETECTED_NEARBY' not found
core/en: token 'SHIP_INFORMATION' not found
core/en: token 'SHIP_MASS_N_TONNES' not found
core/en: token 'SHIP_NEARBY' not found
core/en: token 'SHIP_ORIENTATION' not found
core/en: token 'SHIP_VELOCITY_BY_REFERENCE_OBJECT' not found
core/en: token 'SIDEREAL_VIEW' not found
core/en: token 'SLAVES' not found
core/en: token 'SMALL' not found
core/en: token 'SMALL_GAS_GIANT' not found
core/en: token 'SMALL_INDUSTRIAL_OUTPOST' not found
core/en: token 'SMALL_SCALE_PROSPECTING_NO_SETTLEMENTS' not found
core/en: token 'SOCIAL_DEMOCRACY' not found
core/en: token 'SOLAR' not found
core/en: token 'SOME_ESTABLISHED_MINING' not found
core/en: token 'SOURCE' not found
core/en: token 'SPEED_CONTROL_MODE' not found
core/en: token 'STABLE_SYSTEM_WITH_N_MAJOR_BODIES_STARPORTS' not found
core/en: token 'STARPORT' not found
core/en: token 'STARPORTS' not found
core/en: token 'STAR_A' not found
core/en: token 'STAR_AF_GIANT' not found
core/en: token 'STAR_AF_HYPER_GIANT' not found
core/en: token 'STAR_AF_SUPER_GIANT' not found
core/en: token 'STAR_B' not found
core/en: token 'STAR_B_GIANT' not found
core/en: token 'STAR_B_HYPER_GIANT' not found
core/en: token 'STAR_B_SUPER_GIANT' not found
core/en: token 'STAR_B_WF' not found
core/en: token 'STAR_F' not found
core/en: token 'STAR_G' not found
core/en: token 'STAR_G_GIANT' not found
core/en: token 'STAR_G_HYPER_GIANT' not found
core/en: token 'STAR_G_SUPER_GIANT' not found
core/en: token 'STAR_IM_BH' not found
core/en: token 'STAR_K' not found
core/en: token 'STAR_K_GIANT' not found
core/en: token 'STAR_K_HYPER_GIANT' not found
core/en: token 'STAR_K_SUPER_GIANT' not found
core/en: token 'STAR_M' not found
core/en: token 'STAR_M_GIANT' not found
core/en: token 'STAR_M_HYPER_GIANT' not found
core/en: token 'STAR_M_SUPER_GIANT' not found
core/en: token 'STAR_M_WF' not found
core/en: token 'STAR_O' not found
core/en: token 'STAR_O_GIANT' not found
core/en: token 'STAR_O_HYPER_GIANT' not found
core/en: token 'STAR_O_SUPER_GIANT' not found
core/en: token 'STAR_O_WF' not found
core/en: token 'STAR_SM_BH' not found
core/en: token 'STAR_SYSTEM_INFORMATION' not found
core/en: token 'STAR_S_BH' not found
core/en: token 'SUGGESTED_RESPONSES' not found
core/en: token 'SURFACE_GRAVITY' not found
core/en: token 'SURFACE_TEMPERATURE' not found
core/en: token 'SWAP_SELECTED_HYPERSPACE_TARGET' not found
core/en: token 'SWITCHED_TO_PARENT' not found
core/en: token 'SWITCHED_TO_ROTATIONAL' not found
core/en: token 'SYSTEM' not found
core/en: token 'SYSTEM_NUMBER' not found
core/en: token 'SYSTEM_ORBIT_VIEW' not found
core/en: token 'SYSTEM_TYPE' not found
core/en: token 'S_ATMOSPHERE' not found
core/en: token 'TAKEOFF' not found
core/en: token 'TARGET_OBJECT_IN_SIGHTS' not found
core/en: token 'TENUOUS' not found
core/en: token 'TEXTILES' not found
core/en: token 'THICK' not found
core/en: token 'THIN' not found
core/en: token 'THRIVING_OUTDOOR_WORLD' not found
core/en: token 'THRUSTER_DORSAL' not found
core/en: token 'THRUSTER_MAIN' not found
core/en: token 'THRUSTER_PORT' not found
core/en: token 'THRUSTER_RETRO' not found
core/en: token 'THRUSTER_STARBOARD' not found
core/en: token 'THRUSTER_VENTRAL' not found
core/en: token 'TIME_POINT' not found
core/en: token 'TINY' not found
core/en: token 'TOGGLE_EQUIPMENT_VIEW' not found
core/en: token 'TOGGLE_HUD_MODE' not found
core/en: token 'TOGGLE_LUA_CONSOLE' not found
core/en: token 'TOGGLE_RADAR_MODE' not found
core/en: token 'TOGGLE_RADAR_VIEW' not found
core/en: token 'TOGGLE_ROTATION_DAMPING' not found
core/en: token 'TOMBSTONE_EPITAPH' not found
core/en: token 'TRIPLE_SYSTEM' not found
core/en: token 'UNDOCKING' not found
core/en: token 'UNEXPLORED_SYSTEM_NO_DATA' not found
core/en: token 'UNEXPLORED_SYSTEM_NO_SYSTEM_VIEW' not found
core/en: token 'UNEXPLORED_SYSTEM_STAR_INFO_ONLY' not found
core/en: token 'UNIT_AU' not found
core/en: token 'UNIT_DAYS' not found
core/en: token 'UNIT_HOURS' not found
core/en: token 'UNIT_LY' not found
core/en: token 'UNIT_MINUTES' not found
core/en: token 'UNIT_SECONDS' not found
core/en: token 'UNIT_WEEKS' not found
core/en: token 'UNKNOWN' not found
core/en: token 'UNSET_NAVTARGET' not found
core/en: token 'USE_LOW_THRUST' not found
core/en: token 'VAST_STRIP_MINE' not found
core/en: token 'VERY_DENSE' not found
core/en: token 'VERY_LARGE_GAS_GIANT' not found
core/en: token 'VIEW' not found
core/en: token 'VIOLENT_ANARCHY' not found
core/en: token 'WATER' not found
core/en: token 'WEAPONS' not found
core/en: token 'WEAPON_TEMP' not found
core/en: token 'WHEELS_ARE_DOWN' not found
core/en: token 'WHEELS_ARE_UP' not found
core/en: token 'WHITE_DWARF' not found
core/en: token 'WITH_A' not found
core/en: token 'WITH_NO_SIGNIFICANT_ATMOSPHERE' not found
core/en: token 'X' not found
core/en: token 'Y' not found
core/en: token 'YAW' not found
core/en: token 'YAW_LEFT' not found
core/en: token 'YAW_RIGHT' not found
core/en: token 'YOUNG_FARMING_COLONY' not found
core/en: token 'Z' not found
core/en: token 'ZOOM_IN' not found
core/en: token 'ZOOM_OUT' not found
--------------------
SDL Version (build) 2.0.8
SDL Version (dynamic) 2.0.8
SDL Versions match
SDL_image Version (build): 2.0.3
SDL_image Version (dynamic): 2.0.3
SDL_image Versions match
Assimp Version: 4.0.0
FreeType Version: 2.9.1
GLEW dynamic version: 2.0.0
--------------------
LoadSurfaceFromFile: icons/badge.png: could not read file
Initialized OpenGL 3.1, with extensions, renderer
error: Could not load shaders/opengl/vtxColor.vert |
I try to figure out why.
If you have any idea. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30959 Location: here
|
Posted: Thu Nov 22, 2018 7:57 am Post subject: |
|
|
velociraptux wrote: | ebuild command don't emerge dependency, emerge do. |
Yes ebuild don't check dependencies
velociraptux wrote: | I try to figure out why.
If you have any idea. |
Yes you can export PIONEER_DATA_DIR variable for installing data, I also create desktop file and installed icons
Code: | # Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools desktop
DESCRIPTION="Pioneer is a space adventure game set in our galaxy at the turn of the 31st century."
HOMEPAGE="https://pioneerspacesim.net/"
SRC_URI="https://github.com/${PN}/pioneer/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE=""
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="
net-misc/curl
dev-libs/libsigc++
media-libs/libsdl2
media-libs/sdl2-image
media-libs/freetype
media-libs/libvorbis
media-libs/libpng
media-libs/assimp
media-libs/mesa
"
RDEPEND="${DEPEND}"
S="${WORKDIR}/pioneer-${PV}"
src_prepare() {
default
export PIONEER_DATA_DIR="/usr/share/pioneer"
eautoreconf
}
src_install() {
export PIONEER_DATA_DIR="/usr/share/pioneer"
default
for size in 16 22 24 32 40 48 64 128 256; do
newicon -s ${size} application-icon/pngs/pioneer-${size}x${size}.png pioneer.png
done
make_desktop_entry "pioneer" "Pioneer" "pioneer" "Application;"
} |
_________________ Questions are guaranteed in life; Answers aren't.
Last edited by fedeliallalinea on Fri Nov 23, 2018 6:37 am; edited 1 time in total |
|
Back to top |
|
|
velociraptux n00b
Joined: 21 Nov 2018 Posts: 8
|
Posted: Fri Nov 23, 2018 3:18 am Post subject: |
|
|
Thanks for the help.
I'm trying this tomorrow when I get home. I guess you did not put g++, automake and pkg-config in dependency because they are installed with basic gentoo install.
The code to put the icon going to be my next search. cool. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30959 Location: here
|
Posted: Fri Nov 23, 2018 7:02 am Post subject: |
|
|
velociraptux wrote: | I'm trying this tomorrow when I get home. I guess you did not put g++, automake and pkg-config in dependency because they are installed with basic gentoo install. |
Exactly
velociraptux wrote: | The code to put the icon going to be my next search. cool. |
There was a mistake, now I updated the ebuild in previous message _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
velociraptux n00b
Joined: 21 Nov 2018 Posts: 8
|
Posted: Sat Nov 24, 2018 4:04 am Post subject: |
|
|
Ok the game work with this new ebuild:
Code: | # Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools desktop
DESCRIPTION="Pioneer is a space adventure game set in our galaxy at the turn of the 31st century."
HOMEPAGE="https://pioneerspacesim.net/"
SRC_URI="https://github.com/pioneerspacesim/pioneer/archive/20181127_test.tar.gz"
LICENSE=""
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="
net-misc/curl
dev-libs/libsigc++
media-libs/libsdl2
media-libs/sdl2-image
media-libs/freetype
media-libs/libvorbis
media-libs/libpng
media-libs/assimp
media-libs/mesa
"
RDEPEND="${DEPEND}"
S="${WORKDIR}/pioneer-${PV}_test"
src_prepare() {
default
export PIONEER_DATA_DIR="/usr/share/pioneerspacesim"
eautoreconf
}
src_install() {
export PIONEER_DATA_DIR="/usr/share/pioneerspacesim"
default
}
|
I have a problem with the icons.
Emerge does not find the icon.
I try in many ways, but the result is the same.
inspired by other ebuild of games in portage tree:
Code: | src_install() {
export PIONEER_DATA_DIR="/usr/share/pioneerspacesim"
default
newicon icons/badge.png ${PN}.png
make_desktop_entry ${PN} "pioneerspacesim"
} |
With full path:
Code: | src_install() {
export PIONEER_DATA_DIR="/usr/share/pioneerspacesim"
default
/usr/share/pioneerspacesim/newicon icons/badge.png ${PN}.png
make_desktop_entry ${PN} "pioneerspacesim"
} |
After instalation, the iconne is located in /usr/share/pioneerspacesim/icons/badge.png |
|
Back to top |
|
|
velociraptux n00b
Joined: 21 Nov 2018 Posts: 8
|
Posted: Sat Nov 24, 2018 4:38 am Post subject: |
|
|
There is only one icon. That's why I did not use your solution. Emerge was telling me that iconne sizes did not exist. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30959 Location: here
|
Posted: Sat Nov 24, 2018 9:10 am Post subject: |
|
|
In my src_install there is the solution
Code: | src_install() {
export PIONEER_DATA_DIR="/usr/share/pioneer"
default
for size in 16 22 24 32 40 48 64 128 256; do
newicon -s ${size} application-icon/pngs/pioneer-${size}x${size}.png pioneer.png
done
make_desktop_entry "pioneer" "Pioneer" "pioneer" "Application;"
} |
for loop save the icon in correct location _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
velociraptux n00b
Joined: 21 Nov 2018 Posts: 8
|
Posted: Fri Nov 30, 2018 11:00 pm Post subject: |
|
|
Ok thx for the help.
Game work with this ebuild
Code: | # Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools desktop
DESCRIPTION="Pioneer is a space adventure game set in our galaxy at the turn of the 31st century."
HOMEPAGE="https://pioneerspacesim.net/"
SRC_URI="https://github.com/${PN}/pioneer/archive/${PV}_test.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0 CC-BY-SA-3.0 DejaVu-licence GLEW GPL-3 ImageUsePolicy-NASASpitzerSpaceTelescope SIL-1.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="
net-misc/curl
dev-libs/libsigc++
media-libs/libsdl2
media-libs/sdl2-image
media-libs/freetype
media-libs/libvorbis
media-libs/libpng
media-libs/assimp
media-libs/mesa
"
RDEPEND="${DEPEND}"
S="${WORKDIR}/pioneer-${PV}_test"
src_prepare() {
default
export PIONEER_DATA_DIR="/usr/share/pioneerspacesim"
eautoreconf
}
src_install() {
export PIONEER_DATA_DIR="/usr/share/pioneerspacesim"
default
for size in 16 22 24 32 48 64 128 256; do
newicon -s ${size} application-icon/pngs/pioneer-${size}x${size}.png pioneer.png
done
make_desktop_entry "pioneer" "Pioneer" "pioneer" "Game"
}
|
|
|
Back to top |
|
|
|