sysutils/conky is compiled with Lua 5.1 and devel/lua-sysctl is for Lua 5.2 and I cannot use lua-sysctl in Conky.
How can I compile Conky with Lua 5.2 ?
Thanks
Maurizio
How can I compile Conky with Lua 5.2 ?
Thanks
Maurizio
In /usr/ports/sysutils/conky/Makefile I made the following changes:emmex said:How can I compile Conky with Lua 5.2 ?
USES= gmake iconv pkgconfig tar:bzip2
-changed to-
USES= gmake iconv pkgconfig tar:bzip2 lua
post-patch:
@${REINPLACE_CMD} -e 's,lua5\.1,lua-5.1,g' \
-changed to-
post-patch:
@${REINPLACE_CMD} -e 's,lua5\.1,${LUA_VER},g' \
# pkg info -r lua52
lua52-5.2.3_2:
conky-1.9.0_3
pkg info -r lua52 returns the correct informationfunction conky_lua_version()
print(_VERSION)
return _VERSION
end
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent no
own_window_colour brown
# Use double buffering (reduces flicker)
double_buffer yes
# fiddle with window
use_spacer right
use_xft yes
xftalpha 0.5
no_buffers yes
# Update interval in seconds
update_interval 1.0
# Minimum size of text area
minimum_size 250 5
maximum_width 250
# Draw shades?
draw_shades no
# Text stuff
draw_outline no
draw_borders no
#xftfont Sans:size=15
uppercase no
# Stippled borders?
# stippled_borders 3
# border width
border_width 5
# Default colors and also border colors
default_color white
# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
gap_x 10
gap_y 30
# Lua Load
lua_load ./lua_version.lua
# stuff after ‘TEXT’ will be formatted on screen
TEXT
Lua version: ${lua conky_lua_version }
conky -c conkyrcInteresting. I modeled the changes to the sysutils/conky Makefile after the devel/lua-sysctl Makefile, which uses lang/lua52. There were no other references to the ${LUA_VER} in either Makefile. I'll take another look at this, but in the meantime, you might want to send the port maintainer an email for some quick ideas on how to make this work the way you want.emmex said:Thank you @trh411 for your effort, but unfortunately it does not works for me.