diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2009-07-26 18:45:54 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2009-07-26 18:45:54 +0000 |
commit | 973c4639d4b645d014620a6cbcdd27105cbd3cf2 (patch) | |
tree | 40b5fce4bdc16e2ec8e34e78a52dae231863d8a3 /x11-misc | |
parent | Fix building with GCC 4.4 wrt #276196. (diff) | |
download | historical-973c4639d4b645d014620a6cbcdd27105cbd3cf2.tar.gz historical-973c4639d4b645d014620a6cbcdd27105cbd3cf2.tar.bz2 historical-973c4639d4b645d014620a6cbcdd27105cbd3cf2.zip |
Fix building with GCC 4.4 and other issues wrt #277937, thanks to Zeev Tarantov.
Package-Manager: portage-2.2_rc33/cvs/Linux x86_64
Diffstat (limited to 'x11-misc')
-rw-r--r-- | x11-misc/xplanet/ChangeLog | 11 | ||||
-rw-r--r-- | x11-misc/xplanet/Manifest | 5 | ||||
-rw-r--r-- | x11-misc/xplanet/files/xplanet-1.2.1-gentoo.patch | 457 | ||||
-rw-r--r-- | x11-misc/xplanet/xplanet-1.2.1.ebuild | 71 |
4 files changed, 541 insertions, 3 deletions
diff --git a/x11-misc/xplanet/ChangeLog b/x11-misc/xplanet/ChangeLog index 52da91d47678..af84641f3a73 100644 --- a/x11-misc/xplanet/ChangeLog +++ b/x11-misc/xplanet/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for x11-misc/xplanet -# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/xplanet/ChangeLog,v 1.62 2008/05/03 19:02:05 drac Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/xplanet/ChangeLog,v 1.63 2009/07/26 18:45:54 ssuominen Exp $ + +*xplanet-1.2.1 (26 Jul 2009) + + 26 Jul 2009; Samuli Suominen <ssuominen@gentoo.org> +xplanet-1.2.1.ebuild, + +files/xplanet-1.2.1-gentoo.patch: + Fix building with GCC 4.4 and other issues wrt #277937, thanks to Zeev + Tarantov. 03 May 2008; Samuli Suominen <drac@gentoo.org> +files/xplanet-1.2.0-gcc43.patch, xplanet-1.2.0.ebuild: diff --git a/x11-misc/xplanet/Manifest b/x11-misc/xplanet/Manifest index 1e419f82a994..86cf428ff3fc 100644 --- a/x11-misc/xplanet/Manifest +++ b/x11-misc/xplanet/Manifest @@ -1,5 +1,8 @@ AUX xplanet-1.2.0-gcc43.patch 4739 RMD160 4b9ceb96b20a27130cbc1473a7ad3abe4811618b SHA1 190c4e411488316166f9457d6727291348906145 SHA256 0912222b6835e50391b4d80a7adf7a764656f30def361f2c44e7ae38d9dbb11d +AUX xplanet-1.2.1-gentoo.patch 17675 RMD160 86da33b89cc5d4cfed9bc651521cc9b52ac7fb3f SHA1 52de8ec8f5d81f7514cf006a0cbeb54dfa116c71 SHA256 a57901e4ef4604e308f1dda42e866a38d35f122f24de8a4f011212f9a37caa56 DIST xplanet-1.2.0.tar.gz 1196496 RMD160 68079629e82194f483caa0c06d73672544efbcbb SHA1 e002711f90f502565613ab17a273175cc035b52c SHA256 28eb36541dac40a13f4b0dcba310ecaa825287f64074c5175d261368d8290695 +DIST xplanet-1.2.1.tar.gz 1211663 RMD160 06c5031ea702bca9cc6ed5ad8c81454a223f508e SHA1 c3810c303af8f0cb40520112d9cd1f24fa8b42b5 SHA256 f52d57e27747bc6faa5f3fb4a7f0b80c5fe810a1c303c078666eca97832ae5de EBUILD xplanet-1.2.0.ebuild 1802 RMD160 771b3a77bcd3a7e22e6437597356bffdba90a559 SHA1 571ee7f6c9e44662a1fcfe706d1aa574208bb219 SHA256 0f9ceb62db974d742c909ad56c45400061d6efbab64727497cf3a3e5f6b2d4f2 -MISC ChangeLog 8127 RMD160 50f378077e255db4a2e072252dbe4129c311ce56 SHA1 b0ffca87da2317e166abbb0ec1a2b8821d0d43fd SHA256 74a3fece236c5c3144ee0dd099797cc0a2d661ed012fb69bf7b858ae225a2f32 +EBUILD xplanet-1.2.1.ebuild 1773 RMD160 fccdc247bec0e397ca859abaac4e6639c7a4712f SHA1 8efdb14b10ae0bf7087bb326be705e13bf3b3a01 SHA256 1f9444ea898e6e0c0201f6daa6b642c45d3b90d0a0ecfad518d26e9c7803a174 +MISC ChangeLog 8362 RMD160 582bc8684bb0525d5a3fa001e3704367091c1116 SHA1 0d200f30249557fd6f248828e7d2c85f0aa0420b SHA256 87e9f92481cbec9e64e15e493d7b6a875cd013bd8d8a8be5db11807c64a863ab MISC metadata.xml 166 RMD160 7b80226659bf40e97050b1ffce1858d5f20b3c60 SHA1 e6c6436c304a65b4a012a5b7be7ee264b228a645 SHA256 8e7de0a7f7c15840474de373a3ce36adcc5dd658b2e4d18366fcb63b964a0826 diff --git a/x11-misc/xplanet/files/xplanet-1.2.1-gentoo.patch b/x11-misc/xplanet/files/xplanet-1.2.1-gentoo.patch new file mode 100644 index 000000000000..473c40073517 --- /dev/null +++ b/x11-misc/xplanet/files/xplanet-1.2.1-gentoo.patch @@ -0,0 +1,457 @@ +http://bugs.gentoo.org/show_bug.cgi?id=277937 + +diff -ur xplanet-1.2.1.orig/src/libimage/bmp.c xplanet-1.2.1/src/libimage/bmp.c +--- xplanet-1.2.1.orig/src/libimage/bmp.c 2006-03-26 00:50:51.000000000 +0200 ++++ xplanet-1.2.1/src/libimage/bmp.c 2009-07-26 21:42:03.000000000 +0300 +@@ -61,10 +61,10 @@ + struct BMPHeader bmph; + + /* The length of each line must be a multiple of 4 bytes */ +- + bytesPerLine = (3 * (width + 1) / 4) * 4; + +- strcpy(bmph.bfType, "BM"); ++ /* copy only "BM" without a terminating null byte */ ++ strncpy(bmph.bfType, "BM", 2); + bmph.bfOffBits = 54; + bmph.bfSize = bmph.bfOffBits + bytesPerLine * height; + bmph.bfReserved = 0; +diff -ur xplanet-1.2.1.orig/src/libmultiple/addOrbits.cpp xplanet-1.2.1/src/libmultiple/addOrbits.cpp +--- xplanet-1.2.1.orig/src/libmultiple/addOrbits.cpp 2008-11-14 01:46:12.000000000 +0200 ++++ xplanet-1.2.1/src/libmultiple/addOrbits.cpp 2009-07-26 21:42:06.000000000 +0300 +@@ -86,9 +86,13 @@ + const double period = p->Period(); + if (period == 0) return; + ++ // Units of orbit circumference + const double startOrbit = currentProperties->StartOrbit(); + const double stopOrbit = currentProperties->StopOrbit(); ++ ++ // degrees + const double delOrbit = currentProperties->DelOrbit(); ++ + const unsigned char *color = currentProperties->OrbitColor(); + const int thickness = currentProperties->ArcThickness(); + +@@ -103,10 +107,11 @@ + const double startTime = jd0 + startOrbit * period; + const double stopTime = jd0 + stopOrbit * period; + +- const int numTimes = (int) (180/delOrbit + 0.5); +- ++ int numTimes = (int) abs(360 * startOrbit / delOrbit + 0.5); + addArc(startTime, jd0, numTimes, color, thickness, view, width, height, + Prx, Pry, Prz, p, annotationMap); ++ ++ numTimes = (int) abs(360 * stopOrbit / delOrbit + 0.5); + addArc(jd0, stopTime, numTimes, color, thickness, view, width, height, + Prx, Pry, Prz, p, annotationMap); + } +diff -ur xplanet-1.2.1.orig/src/Satellite.cpp xplanet-1.2.1/src/Satellite.cpp +--- xplanet-1.2.1.orig/src/Satellite.cpp 2006-03-26 02:34:21.000000000 +0200 ++++ xplanet-1.2.1/src/Satellite.cpp 2009-07-26 21:42:17.000000000 +0300 +@@ -1,4 +1,5 @@ + #include <clocale> ++#include <cstdio> + #include <cstring> + #include <iostream> + using namespace std; +diff -ur xplanet-1.2.1.orig/src/Separation.cpp xplanet-1.2.1/src/Separation.cpp +--- xplanet-1.2.1.orig/src/Separation.cpp 2008-11-14 02:19:05.000000000 +0200 ++++ xplanet-1.2.1/src/Separation.cpp 2009-07-26 21:42:17.000000000 +0300 +@@ -1,4 +1,5 @@ + #include <cmath> ++#include <cstdio> + #include <iostream> + + #include "Separation.h" +diff -ur xplanet-1.2.1.orig/xplanet.1 xplanet-1.2.1/xplanet.1 +--- xplanet-1.2.1.orig/xplanet.1 2007-12-27 01:48:50.000000000 +0200 ++++ xplanet-1.2.1/xplanet.1 2009-07-26 21:42:17.000000000 +0300 +@@ -31,7 +31,7 @@ + .sp + .fi + where declination is in degrees and right ascension is in hours. This +-option has no effect if -projection is specified. ++option has no effect if \-projection is specified. + + .TP + .B \-arc_spacing spacing +@@ -48,8 +48,8 @@ + .TP + .B \-background background_file + Use background_file as the background image, with the planet to be +-superimposed upon it. A color may also be supplied (e.g. -background +-"navy blue" or -background 0xff00ff). ++superimposed upon it. A color may also be supplied (e.g. \-background ++"navy blue" or \-background 0xff00ff). + + .TP + .B \-base_magnitude magnitude +@@ -67,20 +67,20 @@ + pluto, charon, random, and major. + + The field of view can also be centered on a satellite location using +-"naif" or "norad", along with the satellite id. For example, "-body +-naif-82" will center the field of view on NAIF ID -82, which is the ++"naif" or "norad", along with the satellite id. For example, "\-body ++naif-82" will center the field of view on NAIF ID \-82, which is the + Cassini orbiter. Xplanet must be compiled with SPICE support and the + required kernels must be present. See the README in the spice +-subdirectory for more details. Using "-body norad20580" will center ++subdirectory for more details. Using "\-body norad20580" will center + the field of view on NORAD ID 20580, which is the Hubble Space + Telescope. The appropriate TLE files must be present in this case. + See the README in the satellites subdirectory for more information. + + Using "path" will center the field of view on the direction of motion + of the origin. This direction is relative to the direction of motion +-of the body specified by -path_relative_to. ++of the body specified by \-path_relative_to. + +-Earth is the default body. This option is the same as -target. ++Earth is the default body. This option is the same as \-target. + + .TP + .B \-center +x+y +@@ -92,13 +92,13 @@ + .B \-color color + Set the color for the label. The default is "red". Any color in the + rgb.txt file may be used. Colors may also be specified by RGB hex +-values; for example -color 0xff and -color blue mean the same thing, +-as do -color 0xff0000 and -color red. ++values; for example \-color 0xff and \-color blue mean the same thing, ++as do \-color 0xff0000 and \-color red. + + .TP + .B \-config config_file + Use the configuration file config_file. The format of config_file is +-described in README.config. See the description of -searchdir to see ++described in README.config. See the description of \-searchdir to see + where xplanet looks in order to find the configuration file. + + .TP +@@ -116,7 +116,7 @@ + .TP + .B \-dynamic_origin file + Specify an observer location. The location is relative to the body +-specified with -origin (by default, this is the Sun). The last line ++specified with \-origin (by default, this is the Sun). The last line + of the file must be of the form + .nf + .sp +@@ -126,7 +126,7 @@ + For example, + .nf + .sp +-19951207.120000 10.328 -3.018 97.709 9.595 ++19951207.120000 10.328 \-3.018 97.709 9.595 + .sp + .fi + The specified time is ignored and the current time is used. The range +@@ -134,7 +134,7 @@ + hours) is optional, but if present, it will be used in place of the + longitude. Only the last line of the file is used. This file may be + updated between renderings using a script executed with the +--prev_command or -post_command options. ++\-prev_command or \-post_command options. + + .TP + .B \-ephemeris_file filename +@@ -144,13 +144,13 @@ + little endian binary files. The ephemeris files found at + ftp://ssd.jpl.nasa.gov/pub/eph/export/unix are big endian files, but + you do not need to do any additional byte-swapping to use them. See +-the description of -searchdir to see where xplanet looks in order to ++the description of \-searchdir to see where xplanet looks in order to + find the ephemeris file. + + .TP + .B \-font fontname + Set the font for the label. Only TrueType fonts are supported. If +-the -pango option is used, fontname is taken to be the font family ++the \-pango option is used, fontname is taken to be the font family + name (e.g. "Arial"). + + .TP +@@ -168,9 +168,9 @@ + + .TP + .B \-fov +-Specify the field of view, in degrees. This option and the -radius ++Specify the field of view, in degrees. This option and the \-radius + option are mutually exclusive. This option has no effect if the +--projection option is used. ++\-projection option is used. + + .TP + .B \-geometry string +@@ -179,7 +179,7 @@ + (e.g. 256x256-10+10 puts a window 256x256 pixels in size 10 pixels + away from the right side and 10 pixels below the top of the root + window). The root window outside of the image will be black. This +-option may be used with -window or -output. ++option may be used with \-window or \-output. + + .TP + .B \-glare radius +@@ -188,7 +188,7 @@ + + .TP + .B \-gmtlabel +-Same as the -label option, but show GMT instead of local time. ++Same as the \-label option, but show GMT instead of local time. + + .TP + .B \-grs_longitude lon +@@ -213,7 +213,7 @@ + + .TP + .B \-interpolate_origin_file +-This option is only useful in conjunction with -origin_file. It ++This option is only useful in conjunction with \-origin_file. It + computes the observer position at the current time by interpolating + between values specified in the origin file. This is useful if you + have spacecraft positions tabulated in an origin file, but want a real +@@ -232,12 +232,12 @@ + Specify the location of the label using the standard X window geometry + syntax. The default position is "-15+15", or 15 pixels to the left + and below the top right corner of the display. This option implies +--label. ++\-label. + + .TP + .B \-label_body body + Use the specified body to calculate the sub-observer, sub-solar, and +-illumination values in the label. This is useful with the -separation ++illumination values in the label. This is useful with the \-separation + option. + + .TP +@@ -268,17 +268,17 @@ + .B \-longitude longitude + Place the observer above the specified longitude (in degrees). + Longitude is positive going east, negative going west (for the earth +-and moon), so for example Los Angeles is at -118 or 242. The default ++and moon), so for example Los Angeles is at \-118 or 242. The default + value is 0. + + .TP + .B \-make_cloud_maps + If there is an entry in the config file for cloud_map, xplanet will + output a day and night image with clouds overlaid and then exit. The +-images will be created in the directory specified by -tmpdir, or in +-the current directory if -tmpdir is not used. The names of the output ++images will be created in the directory specified by \-tmpdir, or in ++the current directory if \-tmpdir is not used. The names of the output + images default to day_clouds.jpg and night_clouds.jpg, but may be +-changed by the -output option. If "-output filename.extension" is ++changed by the \-output option. If "\-output filename.extension" is + specified, the output images will be named "day_filename.extension" + and "night_filename.extension". The dimensions of the output images + are the same as the day image. +@@ -290,11 +290,11 @@ + declination, right ascension, string, as in the example below: + .nf + .sp +--16.7161 6.7525 "Sirius" ++\-16.7161 6.7525 "Sirius" + .sp + .fi + For additional options which may be specified, see the marker_file +-entry in README.config. This option has no effect if -projection is ++entry in README.config. This option has no effect if \-projection is + specified. This option is not meant for city markers; for that use + the marker_file option in the configuration file. + +@@ -321,9 +321,9 @@ + body: body's north pole + galactic: galactic north pole + orbit: body's orbital north pole (perpendicular to the orbit plane) +-path: origin's velocity vector (also see -path_relative_to option) ++path: origin's velocity vector (also see \-path_relative_to option) + separation: perpendicular to the line of sight and the +- target-separation target line (see -separation option) ++ target-separation target line (see \-separation option) + .sp + .fi + The default value is "body". +@@ -335,7 +335,7 @@ + .TP + .B \-origin body + Place the observer at the center of the specified body. Valid values +-are the same as for -target. In addition, "above", "below", or ++are the same as for \-target. In addition, "above", "below", or + "system" may be specified. Using "above" or "below" centers the view + on the body's primary and the field of view is large enough to show + the body's orbit. Using "system" places the observer at the center of +@@ -351,15 +351,15 @@ + If the body name is preceded by a dash, the observer is placed on the + opposite side of the target from the specified body at a distance + equal to the distance between the target and body. For example, +--target earth -origin sun places the observer at the center of the +-sun. If -target earth -origin -sun is used, the observer is placed on ++\-target earth \-origin sun places the observer at the center of the ++sun. If \-target earth \-origin \-sun is used, the observer is placed on + a line connecting the centers of the earth and sun at a distance of 1 + AU farther from the sun than the earth. + + .TP + .B \-origin_file origin_file + Specify a list of observer positions in origin_file. The positions +-are relative to the body specified with -origin (by default, this is ++are relative to the body specified with \-origin (by default, this is + the Sun). Each line should be of the form + .nf + .sp +@@ -369,14 +369,14 @@ + For example, + .nf + .sp +-19951207.120000 10.328 -3.018 97.709 9.595 ++19951207.120000 10.328 \-3.018 97.709 9.595 + .sp + .fi + Range is in planetary radii, and lat and lon are in degrees. The date + is the only required value. If the localtime (in hours) is supplied, + it will be used in place of the longitude. For each line in the + origin file, the observer is placed at the specified position, +-relative to the body specified with -origin. This option is useful ++relative to the body specified with \-origin. This option is useful + for showing spacecraft flybys or orbiting around a planet. Any line + with a # in the first column is ignored. + +@@ -386,8 +386,8 @@ + taken from the extension. Currently .gif, .jpg, .ppm, .png, and .tiff + images can be created, if xplanet has been compiled with the + appropriate libraries. The image size defaults to 512 by 512 pixels +-but this may be changed by the -geometry flag. If used with the +--num_times option, each output file will be numbered sequentially. ++but this may be changed by the \-geometry flag. If used with the ++\-num_times option, each output file will be numbered sequentially. + + .TP + .B \-output_start_index index +@@ -404,7 +404,7 @@ + + .TP + .B \-path_relative_to body +-Only used with -north path or -target path. The origin's velocity ++Only used with \-north path or \-target path. The origin's velocity + vector is calculated relative to the specified body. By default, this + is the Sun. + +@@ -416,7 +416,7 @@ + On MS Windows, you may need to use unix-style paths. For example: + .nf + .sp +-xplanet.exe -prev_command ./prev.bat ++xplanet.exe \-prev_command ./prev.bat + .sp + .fi + +@@ -471,8 +471,8 @@ + .TP + .B \-rotate angle + Rotate the globe by angle degrees counterclockwise so that north (as +-defined by the -north argument) isn't at the top. The default value +-is 0. My friends in the Southern Hemisphere can use -rotate 180 to ++defined by the \-north argument) isn't at the top. The default value ++is 0. My friends in the Southern Hemisphere can use \-rotate 180 to + make the earth look like it should! For non-orthographic projections, + the globe is rotated and then projected, if that helps you visualize + what to expect. +@@ -481,7 +481,7 @@ + .B \-save_desktop_file + On Microsoft Windows and Mac OS X, xplanet creates an intermediate + image file which is used to set the desktop. This file will be +-created in the -tmpdir directory. By default, this image is removed ++created in the \-tmpdir directory. By default, this image is removed + after the desktop has been set. Specifying this option will leave the + file in place. + +@@ -507,14 +507,14 @@ + .TP + .B \-separation body:dist + Place the observer at a location where the target body and the +-separation body are dist degrees apart. For example "-target earth +--separation moon:-3" means place the observer at a location where the ++separation body are dist degrees apart. For example "\-target earth ++\-separation moon:-3" means place the observer at a location where the + moon appears 3 degrees to the left of the earth. + + .TP + .B \-spice_ephemeris index + Use SPICE kernels to compute the position of the named body. The +-index is the naif ID code (e.g. 599 for Jupiter). The -spice_file ++index is the naif ID code (e.g. 599 for Jupiter). The \-spice_file + option must be used to supply the names of the kernel files. This + option may be used more than once for different bodies. + +@@ -544,15 +544,15 @@ + decimal hours. For example, the entry for Sirius is + .nf + .sp +--16.7161 6.7525 -1.46 ++\-16.7161 6.7525 \-1.46 + .sp + .fi +-See the description of -searchdir to see where xplanet looks in order ++See the description of \-searchdir to see where xplanet looks in order + to find the star map. + + .TP + .B \-target target +-Same as -body. ++Same as \-body. + + .TP + .B \-tt +@@ -568,13 +568,13 @@ + .TP + .B \-tmpdir tmpdir + Specify a directory that xplanet will use to place images created +-using -make_cloud_maps. On Microsoft Windows, xplanet will write ++using \-make_cloud_maps. On Microsoft Windows, xplanet will write + a bitmap file called xplanet.bmp to the specified directory. The + default is the result of the GetWindowsDirectory call (C:\WINDOWS on + Win95). On Mac OS X, xplanet will create an intermediate PNG file in + order to set the background. The default value is /tmp. On Windows + and Mac OS X, the intermediate file will be removed unless the +--save_desktop_file option is specified. ++\-save_desktop_file option is specified. + + .TP + .B \-transparency +@@ -583,12 +583,12 @@ + + .TP + .B \-transpng filename +-Same as the -output option, except set the background to be ++Same as the \-output option, except set the background to be + transparent when writing a PNG file. + + .TP + .B \-utclabel +-Same as -gmtlabel. ++Same as \-gmtlabel. + + .TP + .B \-verbosity level +@@ -624,13 +624,13 @@ + .TP + .B \-window + Render the image to its own X window. The size defaults to 512 by 512 +-pixels but this may be set by the -geometry flag. ++pixels but this may be set by the \-geometry flag. + + .TP + .B \-window_title title +-Set the window's title to title. This option implies -window. ++Set the window's title to title. This option implies \-window. + + .TP + .B \-xscreensaver +-Same as -vroot. ++Same as \-vroot. + diff --git a/x11-misc/xplanet/xplanet-1.2.1.ebuild b/x11-misc/xplanet/xplanet-1.2.1.ebuild new file mode 100644 index 000000000000..267b6919453b --- /dev/null +++ b/x11-misc/xplanet/xplanet-1.2.1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/xplanet/xplanet-1.2.1.ebuild,v 1.1 2009/07/26 18:45:54 ssuominen Exp $ + +EAPI=2 +inherit eutils + +DESCRIPTION="a program to render images of the earth into the X root window" +HOMEPAGE="http://xplanet.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="gif jpeg X truetype tiff png" + +RDEPEND="X? ( x11-libs/libX11 + x11-libs/libXScrnSaver + x11-libs/libXt + x11-libs/libXext ) + gif? ( media-libs/giflib ) + jpeg? ( media-libs/jpeg ) + tiff? ( media-libs/tiff ) + png? ( media-libs/libpng + media-libs/netpbm ) + truetype? ( =media-libs/freetype-2* + x11-libs/pango )" +DEPEND="${RDEPEND} + X? ( x11-proto/xproto + x11-proto/scrnsaverproto )" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch +} + +src_configure() { + local myconf + + use X \ + && myconf="${myconf} --with-x --with-xscreensaver" \ + || myconf="${myconf} --with-x=no --with-xscreensaver=no" + + use gif \ + && myconf="${myconf} --with-gif" \ + || myconf="${myconf} --with-gif=no" + + use jpeg \ + && myconf="${myconf} --with-jpeg" \ + || myconf="${myconf} --with-jpeg=no" + + use tiff \ + && myconf="${myconf} --with-tiff" \ + || myconf="${myconf} --with-tiff=no" + + use png \ + && myconf="${myconf} --with-png --with-pnm" \ + || myconf="${myconf} --with-png=no --with-pnm=no" + + use truetype \ + && myconf="${myconf} --with-freetype --with-pango" \ + || myconf="${myconf} --with-freetype=no --with-pango=no" + + econf \ + --with-cspice=no \ + ${myconf} +} + +src_install () { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc AUTHORS ChangeLog NEWS README TODO +} |