mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 18:45:10 +00:00
small fixes, new cvs ebuild available
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@62 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
ab526b626f
commit
c0b2a4075a
@ -1,3 +1,7 @@
|
|||||||
|
2005-07-05
|
||||||
|
* small fixes
|
||||||
|
* added CVS ebuild, huge thanks to Hopeless for this
|
||||||
|
|
||||||
2005-07-04
|
2005-07-04
|
||||||
* special thanks to Citizen_X and his patience
|
* special thanks to Citizen_X and his patience
|
||||||
* Citizen_X pwns
|
* Citizen_X pwns
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
<f77flags/>
|
<f77flags/>
|
||||||
</optimized>
|
</optimized>
|
||||||
<debug>
|
<debug>
|
||||||
<configargs>--enable-debug=full --prefix=/usr --enable-mpd --enable-xft --enable-seti --enable-double-buffer --enable-own-window --enable-metar --enable-mldonkey</configargs>
|
<configargs>--enable-debug=full --prefix=/usr --enable-mpd --disable-xft --enable-seti --enable-double-buffer --disable-own-window --enable-metar --enable-mldonkey</configargs>
|
||||||
<builddir>debug</builddir>
|
<builddir>debug</builddir>
|
||||||
<ccompiler>kdevgccoptions</ccompiler>
|
<ccompiler>kdevgccoptions</ccompiler>
|
||||||
<cxxcompiler>kdevgppoptions</cxxcompiler>
|
<cxxcompiler>kdevgppoptions</cxxcompiler>
|
||||||
|
75
app-admin/conky/conky-1.9999.ebuild
Normal file
75
app-admin/conky/conky-1.9999.ebuild
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
# CVS ebuild for Conky
|
||||||
|
# $Header$
|
||||||
|
|
||||||
|
ECVS_SERVER="cvs.sourceforge.net:/cvsroot/conky"
|
||||||
|
ECVS_MODULE="conky"
|
||||||
|
inherit cvs
|
||||||
|
|
||||||
|
DESCRIPTION="minimalist system monitor for X based on torsmo"
|
||||||
|
HOMEPAGE="http://conky.rty.ca"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
|
||||||
|
IUSE="truetype seti metar mldonkey mpd"
|
||||||
|
|
||||||
|
RDEPEND="virtual/libc
|
||||||
|
virtual/x11
|
||||||
|
truetype? ( >=media-libs/freetype-2 )
|
||||||
|
seti? ( sci-astronomy/setiathome )
|
||||||
|
metar? ( dev-libs/mdsplib )"
|
||||||
|
|
||||||
|
DEPEND="truetype? ( >=media-libs/freetype-2 )
|
||||||
|
metar? ( dev-libs/mdsplib )
|
||||||
|
virtual/x11
|
||||||
|
>=sys-devel/automake-1.4
|
||||||
|
sys-devel/autoconf
|
||||||
|
sys-apps/grep
|
||||||
|
sys-apps/sed
|
||||||
|
sys-devel/gcc
|
||||||
|
>=sys-process/procps-3.2.5
|
||||||
|
"
|
||||||
|
|
||||||
|
S=${WORKDIR}/conky
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
cvs_src_unpack
|
||||||
|
cd ${S}
|
||||||
|
NOCONFIGURE=blah ./autogen.sh
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
econf \
|
||||||
|
$(use_enable truetype xft) \
|
||||||
|
$(use_enable metar) \
|
||||||
|
$(use_enable mldonkey) \
|
||||||
|
$(use_enable mpd) \
|
||||||
|
$(use_enable seti) \
|
||||||
|
--enable-double-buffer \
|
||||||
|
--enable-own-window \
|
||||||
|
--enable-proc-uptime \
|
||||||
|
|| die "econf failed"
|
||||||
|
emake || die "compile failed"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake DESTDIR=${D} install || die "make install failed"
|
||||||
|
dodoc ChangeLog AUTHORS README conkyrc.sample
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
einfo 'default configuration file is "~/.conkyrc"'
|
||||||
|
einfo "you can find a sample configuration file in"
|
||||||
|
einfo "/usr/share/doc/${PF}/conkyrc.sample.gz"
|
||||||
|
einfo
|
||||||
|
einfo "For more info on Conky's new features,"
|
||||||
|
einfo "please look at the README and ChangeLog:"
|
||||||
|
einfo "/usr/share/doc/${PF}/README.gz"
|
||||||
|
einfo "/usr/share/doc/${PF}/ChangeLog.gz"
|
||||||
|
einfo
|
||||||
|
einfo "Comment out temperature info lines if you have no kernel"
|
||||||
|
einfo "support for it."
|
||||||
|
einfo
|
||||||
|
ewarn "Conky doesn't work with window managers that"
|
||||||
|
ewarn "take control over root window such as Gnome's nautilus."
|
||||||
|
}
|
18
conky.c
18
conky.c
@ -215,13 +215,13 @@ static long default_fg_color, default_bg_color, default_out_color;
|
|||||||
|
|
||||||
static int cpu_avg_samples, net_avg_samples;
|
static int cpu_avg_samples, net_avg_samples;
|
||||||
|
|
||||||
/*#ifdef OWN_WINDOW*/
|
|
||||||
/* create own window or draw stuff to root? */
|
/* create own window or draw stuff to root? */
|
||||||
static int own_window = 0;
|
static int own_window = 0;
|
||||||
|
|
||||||
|
#ifdef OWN_WINDOW
|
||||||
/* fixed size/pos is set if wm/user changes them */
|
/* fixed size/pos is set if wm/user changes them */
|
||||||
static int fixed_size = 0, fixed_pos = 0;
|
static int fixed_size = 0, fixed_pos = 0;
|
||||||
/*#endif*/
|
#endif
|
||||||
|
|
||||||
static int minimum_width, minimum_height;
|
static int minimum_width, minimum_height;
|
||||||
|
|
||||||
@ -3051,10 +3051,13 @@ static void draw_line(char *s)
|
|||||||
if (fontchange) {
|
if (fontchange) {
|
||||||
cur_y -= font_ascent();
|
cur_y -= font_ascent();
|
||||||
selected_font = specials[special_index].font_added;
|
selected_font = specials[special_index].font_added;
|
||||||
cur_y += font_ascent();
|
cur_y += font_ascent();
|
||||||
if (!use_xft) {
|
#ifdef XFT
|
||||||
set_font();
|
if (!use_xft)
|
||||||
}
|
#endif
|
||||||
|
{
|
||||||
|
set_font();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@ -4214,8 +4217,9 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
/* generate text and get initial size */
|
/* generate text and get initial size */
|
||||||
extract_variable_text(text);
|
extract_variable_text(text);
|
||||||
if (text != original_text)
|
if (text != original_text) {
|
||||||
free(text);
|
free(text);
|
||||||
|
}
|
||||||
text = NULL;
|
text = NULL;
|
||||||
|
|
||||||
update_uname();
|
update_uname();
|
||||||
|
Loading…
Reference in New Issue
Block a user