forked from e16/e16
1
0
Fork 0

* combined Makefile and menu mangling scripts and debhelper files into

debianize.sh
 * changed debian/rules into a somewhat "normalized" rules.multi format
 * fixed various prerm and postinst scripts
 * replaced the ganymede theme with bluesteel
 * truncated "BrushedMetal-Tigert" down to "BrushedM" so dpkg --install
   will STFU, looking for a real fix


SVN revision: 755
This commit is contained in:
Laurence J. Lane 1999-10-10 12:49:48 +00:00
parent a29434b5ea
commit a77b047f56
8 changed files with 548 additions and 389 deletions

18
debian/README.debian vendored
View File

@ -1,8 +1,16 @@
Enlightenment for DEBIAN
------------------------
Enlightenment for Debian/GNU Linux
----------------------------------
This is the CVS release of the Enlightenment Window Manager for Debian.
This is NOT an official Debian package. Bugs posted in the Debian Bug
Tracking System will not be acknowledged.
This is the Debian package of the CVS version of Enlightenment
0.16.0. It's designed for the latest "unstable" Debian Potato.
Visit http://www.debian.org or your favorite Debian mirror site
for the latest Debian binary and source packaging of E 0.16.0.
Thanks, Sean, Brian, Carsten, Geoff, Adam, Dale, and all that
helped me with this project. Thanks #E and everyone helping
Debian, Enlightenment, and Linux to thrive.
CVS releases will continue. Visit http://www.debian.org/~ljlane/
for details.
Laurence J. Lane <ljlane@debian.org>, Wed, 29 Sep 1999 21:14:30 -0400

6
debian/changelog vendored
View File

@ -1,8 +1,8 @@
enlightenment (0.16.0-1.1) unstable; urgency=low
enlightenment (0.16.0-1) unstable; urgency=low
* New upstream release coming RSN
* New upstream release
-- Laurence J. Lane <ljlane@debian.org> Sat, 2 Oct 1999 18:21:01 -0400
-- Laurence J. Lane <ljlane@debian.org> Sun, 10 Oct 1999 07:25:50 -0400
Local variables:
mode: debian-changelog

70
debian/control vendored
View File

@ -8,12 +8,36 @@ Package: enlightenment-docs
Architecture: all
Recommends: enlightenment | enlightenment-nosound
Description: Documentation common to all Enlightenment packages.
All Enlightenment packages symlink their /usr/doc/* directories here.
All Enlightenment packages symlink their /usr/share/doc/<package> directories here.
Package: enlightenment-dox
Architecture: any
Depends: ${shlibs:Depends}, enlightenment-docs
Recommends: enlightenment | enlightenment-nosound
Replaces: dox
Conflicts: dox
Provides: dox
Description: Enlightened help program
Help program for Enlightened applications. Many themes use this for their
documentation.
Package: enlightenment-nosound
Architecture: any
Depends: enlightenment-docs, ${shlibs:Depends}
Recommends: enlightenment-theme, esound, enlightenment-dox
Conflicts: enlightenment, enlightenment-theme (<< 0.15.0-1)
Replaces: enlightenment
Description: The Enlightenment Window Manager
The Enlightenment Window Manager (Developer Release), or "E", whose motto
is "Time to rethink everything". It allows complete user control of almost
every possible setting. This is accomplished through its use of themes.
It now includes support for root menus, iconification, docking, GNOME
integration, and much more. This version is compiled without sound support.
Package: enlightenment
Architecture: any
Depends: ${shlibs:Depends}, enlightenment-docs
Recommends: enlightenment-theme, esound, dox
Recommends: enlightenment-theme, enlightenment-dox
Conflicts: enlightenment-nosound, enlightenment-theme (<< 0.15.0-1)
Replaces: enlightenment-nosound
Description: The Enlightenment Window Manager
@ -23,19 +47,6 @@ Description: The Enlightenment Window Manager
It now includes support for root menus, iconification, docking, GNOME
integration, and much more. This version is compiled with sound support.
Package: enlightenment-nosound
Architecture: any
Depends: ${shlibs:Depends}, enlightenment-docs
Recommends: enlightenment-theme, dox
Conflicts: enlightenment, enlightenment-theme (<< 0.15.0-1)
Replaces: enlightenment
Description: The Enlightenment Window Manager without sound support
The Enlightenment Window Manager (Developer Release), or "E", whose motto
is "Time to rethink everything". It allows complete user control of almost
every possible setting. This is accomplished through its use of themes.
It now includes support for root menus, iconification, docking, GNOME
integration, and much more. This version is compiled without sound support.
Package: enlightenment-theme-shinymetal
Architecture: all
Depends: enlightenment-docs
@ -49,27 +60,15 @@ Description: Raster's ShinyMetal Theme for E
borders, with translucent dark orange highlights. It includes some nice
background pictures.
Package: enlightenment-theme-brushedmetal
Package: enlightenment-theme-bluesteel
Architecture: all
Depends: enlightenment-docs
Recommends: enlightenment | enlightenment-nosound
Replaces: enlightenment-theme (<< 0.15.0-1)
Conflicts: enlightenment-theme (<< 0.15.0-1)
Provides: enlightenment-theme
Description: Tigert's BrushedMetal Theme for E
The BrushedMetal theme, designed by gimp legend tigert, is predominately
grey with the subtle texture of - you guessed it - brushed metal. The
menus in particular look superb.
Package: enlightenment-theme-ganymede
Architecture: all
Depends: enlightenment-docs
Recommends: enlightenment | enlightenment-nosound
Replaces: enlightenment-theme (<< 0.15.0-1)
Conflicts: enlightenment-theme (<< 0.15.0-1)
Provides: enlightenment-theme
Description: cK's Ganymede Theme for E
I don't "do" descriptions. Somebody provide one, please.
Description: The BlueSteel theme for E
This is a pleasingly hot and tempting theme. Try it ... you'll like it!
Package: enlightenment-theme-brushedmetal
Architecture: all
@ -82,14 +81,3 @@ Description: Tigert's BrushedMetal Theme for E
The BrushedMetal theme, designed by gimp legend tigert, is predominately
grey with the subtle texture of - you guessed it - brushed metal. The
menus in particular look superb.
Package: enlightenment-dox
Architecture: any
Depends: ${shlibs:Depends}, enlightenment-docs
Recommends: enlightenment | enlightenment-nosound
Replaces: dox
Conflicts: dox
Provides: dox
Description: Enlightened help program
Help program for Enlightened applications. Many themes use this for their
documentation.

14
debian/copyright vendored
View File

@ -1,3 +1,17 @@
This is the Debian GNU/Linux prepackaged presentation of the Enlightenment
window manager. This package was originally Debianized by Sean E. Perry
<shaleh@debian.org> and refined further Brian M. Almeida <bma@debian.org>.
This package was assembled from source code obtained from the enligthenment
CVS repository.
:pserver:anonymous@cvs.enlightenment.org:/cvs/enlightenment
Visit http://www.enlightenment.org/cvs.html for additional information.
Copyright Information:
Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
Permission is hereby granted, free of charge, to any person obtaining a copy

218
debian/debhelper2.sh vendored
View File

@ -1,218 +0,0 @@
#!/bin/sh
# debhelper2.sh - creates e's debhelper support files
cat > "./enlightenment-nosound.conffiles" <<- "END"
/etc/menu-methods/enlightenment-nosound
END
cat > "./enlightenment-nosound.menu" <<- "END"
?package(enlightenment-nosound):needs="wm" section="WindowManagers"\
title="Enlightenment" command="/usr/X11R6/bin/enlightenment"
END
cat > "./enlightenment-nosound.menu-method" <<- "END"
#!/usr/sbin/install-menu
compat="menu-1"
genmenu=replacewith(parent($section), "/", "_") ".menu"
rootprefix="/etc/X11/enlightenment/menus"
treewalk="cm"
rootsection="Debian"
# Limit usage to root for now until we figure out how to convince the
# E menu to ignore the system menus if user menus exist
onlyrunasroot=true
function quote($target)= "\"" $target "\""
function tick($target)= "\'" $target "\'"
# choose your term here, uncomment one
function term()="Eterm -T"
#function term()="xterm -T"
#function term()="rxvt -title"
function menu()= quote(prefix() "/" replacewith($section , "/", "_") ".menu")
function icon_select()=ifelse($icon32x32, $icon32x32, \
ifelse($icon16x16, $icon16x16, $icon))
function icon()= quote(ifelse(icon_select(),icon_select(),"NULL"))
function title()= quote(esc($title,"\""))
function x11()= quote($command)
function text()= quote(term() " " tick(esc($title,"\"")) " -e " tick($command))
function wm()= quote("eesh -e " tick("restart_wm " $command))
function menu_entry($name,$icon,$action,$parameters)=\
firstentry(quote(basename($section)) "\n")\
print($name " " $icon " " $action " " $parameters "\n")
supported
x11= menu_entry( title(), icon(), quote("exec"), x11())
text= menu_entry( title(), icon(), quote("exec"), text())
wm= menu_entry( title(), icon(), quote("exec"), wm())
endsupported
submenutitle= menu_entry( title(), icon(), quote("menu"), menu())
# this stuff is unused, but has proven to be a pain if not defined
preoutput=""
postoutput=""
startmenu=""
endmenu=""
END
cat > "./enlightenment-nosound.prerm" <<- "END"
#!/bin/sh -e
find /etc/X11/enlightenment/menus -type f -name Debian_*.menu | xargs rm -rf
#DEBHELPER#
END
cat > "./enlightenment-theme-brushedmetal.postinst" <<- "END"
#!/bin/sh
set -e
update-alternatives --install /usr/share/enlightenment/themes/DEFAULT \
enlightenment-theme-default \
/usr/share/enlightenment/themes/BrushedMetal 50
END
cat > "./enlightenment-theme-brushedmetal.prerm" <<- "END"
#!/bin/sh
set -e
update-alternatives --remove enlightenment-theme-default \
/usr/share/enlightenment/themes/BrushedMetal
END
cat > "./enlightenment-theme-ganymede.postinst" <<- "END"
#!/bin/sh
set -e
update-alternatives --install /usr/share/enlightenment/themes/DEFAULT \
enlightenment-theme-default \
/usr/share/enlightenment/themes/Ganymede 30
END
cat > "./enlightenment-theme-ganymede.prerm" <<- "END"
#!/bin/sh
set -e
update-alternatives --remove enlightenment-theme-default \
/usr/share/enlightenment/themes/Ganymede
END
cat > "./enlightenment-theme-shinymetal.postinst" <<- "END"
#!/bin/sh
set -e
update-alternatives --install /usr/share/enlightenment/themes/DEFAULT \
enlightenment-theme-default \
/usr/share/enlightenment/themes/ShinyMetal 40
END
cat > "./enlightenment-theme-shinymetal.prerm" <<- "END"
#!/bin/sh
set -e
update-alternatives --remove enlightenment-theme-default \
/usr/share/enlightenment/themes/ShinyMetal
END
cat > "./enlightenment.conffiles" <<- "END"
/etc/menu-methods/enlightenment
END
cat > "./enlightenment.menu" <<- "END"
?package(enlightenment):needs="wm" section="WindowManagers"\
title="Enlightenment" command="/usr/X11R6/bin/enlightenment"
END
cat > "./enlightenment.menu-method" <<- "END"
#!/usr/sbin/install-menu
compat="menu-1"
genmenu=replacewith(parent($section), "/", "_") ".menu"
rootprefix="/etc/X11/enlightenment/menus"
treewalk="cm"
rootsection="Debian"
# Limit usage to root for now until we figure out how to convince the
# E menu to ignore the system menus if user menus exist
onlyrunasroot=true
function quote($target)= "\"" $target "\""
function tick($target)= "\'" $target "\'"
# choose your term here, uncomment one
function term()="Eterm -T"
#function term()="xterm -T"
#function term()="rxvt -title"
function menu()= quote(prefix() "/" replacewith($section , "/", "_") ".menu")
function icon_select()=ifelse($icon32x32, $icon32x32, \
ifelse($icon16x16, $icon16x16, $icon))
function icon()= quote(ifelse(icon_select(),icon_select(),"NULL"))
function title()= quote(esc($title,"\""))
function x11()= quote($command)
function text()= quote(term() " " tick(esc($title,"\"")) " -e " tick($command))
function wm()= quote("eesh -e " tick("restart_wm " $command))
function menu_entry($name,$icon,$action,$parameters)=\
firstentry(quote(basename($section)) "\n")\
print($name " " $icon " " $action " " $parameters "\n")
supported
x11= menu_entry( title(), icon(), quote("exec"), x11())
text= menu_entry( title(), icon(), quote("exec"), text())
wm= menu_entry( title(), icon(), quote("exec"), wm())
endsupported
submenutitle= menu_entry( title(), icon(), quote("menu"), menu())
# this stuff is unused, but has proven to be a pain if not defined
preoutput=""
postoutput=""
startmenu=""
endmenu=""
END
cat > "./enlightenment.prerm" <<- "END"
#!/bin/sh -e
find /etc/X11/enlightenment/menus -type f -name Debian_*.menu | xargs rm -rf
#DEBHELPER#
END

381
debian/debianize.sh vendored Executable file
View File

@ -0,0 +1,381 @@
#!/bin/sh
# This is the Debian Enlightened Squash System. It was inspired by a mutual
# dislike of the large number of debhelper files in the e/debian/ dir. I was
# able to kill several birds with one stone, too. The debianize.sh script does
# the menu and makefile mangling and also creates the debhelper files.
# The makefile target named, squash, in the debian/rules makefile creates
# debianize.sh from debianinze-stub.sh and the various debhelper files.
# ljlane@debian.org
set -e
mv autogen.sh autogen.sh.old
sed '/srcdir\/configure/ d' autogen.sh.old > autogen.sh
chmod +x autogen.sh
mv src/themes/Makefile.am src/themes/Makefile.am.old
sed '/^install-data-local:$/,/^$/ d' src/themes/Makefile.am.old > src/themes/Makefile.am
mv src/Makefile.am src/Makefile.am.old
sed '/^install-data-local:$/,$ d' src/Makefile.am.old > src/Makefile.am
grep -q 'DEBIAN_MENU' 'src/themes/configs/menus.cfg' || \
mv "src/themes/configs/menus.cfg" "src/themes/configs/menus.cfg.old" && \
sed '/^__E_CFG_VERSION 0$/ {
a\
\
BEGIN_NEW_FILE_MENU("DEBIAN_MENU", "ROOT", "/etc/X11/enlightenment/menus/Debian.menu")\
END_MENU\
}
/^ADD_MENU_SUBMENU_TEXT_ITEM("User Menus", *"APPS_SUBMENU")$/ {
a\
ADD_MENU_SUBMENU_TEXT_ITEM("Debian", "DEBIAN_MENU")
}' 'src/themes/configs/menus.cfg.old' > 'src/themes/configs/menus.cfg'
#### end of debianize.sh, file restoration follows, creates debianize-stub.sh too ####
cat > "debian/enlightenment-dox.links" <<- "END"
usr/share/doc/enlightenment-docs usr/share/doc/enlightenment-dox
END
cat > "debian/enlightenment-nosound.conffiles" <<- "END"
/etc/menu-methods/enlightenment-nosound
END
cat > "debian/enlightenment-nosound.links" <<- "END"
usr/share/doc/enlightenment-doc usr/share/doc/enlightenment-nosound
END
cat > "debian/enlightenment-nosound.menu" <<- "END"
?package(enlightenment-nosound):needs="wm" section="WindowManagers"\
title="Enlightenment" command="/usr/X11R6/bin/enlightenment"
END
cat > "debian/enlightenment-nosound.menu-method" <<- "END"
#!/usr/sbin/install-menu
compat="menu-1"
genmenu=replacewith(parent($section), "/", "_") ".menu"
rootprefix="/etc/X11/enlightenment/menus"
treewalk="cm"
rootsection="Debian"
# Limit usage to root for now until we figure out how to convince the
# E menu to ignore the system menus if user menus exist
onlyrunasroot=true
function quote($target)= "\"" $target "\""
function tick($target)= "\'" $target "\'"
# choose your term here, uncomment one
function term()="Eterm -T"
#function term()="xterm -T"
#function term()="rxvt -title"
function menu()= quote(prefix() "/" replacewith($section , "/", "_") ".menu")
function icon_select()=ifelse($icon32x32, $icon32x32, \
ifelse($icon16x16, $icon16x16, $icon))
function icon()= quote(ifelse(icon_select(),icon_select(),"NULL"))
function title()= quote(esc($title,"\""))
function x11()= quote($command)
function text()= quote(term() " " tick(esc($title,"\"")) " -e " tick($command))
function wm()= quote("eesh -e " tick("restart_wm " $command))
function menu_entry($name,$icon,$action,$parameters)=\
firstentry(quote(basename($section)) "\n")\
print($name " " $icon " " $action " " $parameters "\n")
supported
x11= menu_entry( title(), icon(), quote("exec"), x11())
text= menu_entry( title(), icon(), quote("exec"), text())
wm= menu_entry( title(), icon(), quote("exec"), wm())
endsupported
submenutitle= menu_entry( title(), icon(), quote("menu"), menu())
# this stuff is unused, but has proven to be a pain if not defined
preoutput=""
postoutput=""
startmenu=""
endmenu=""
END
cat > "debian/enlightenment-nosound.prerm" <<- "END"
#!/bin/sh
set -e
find /etc/X11/enlightenment/menus -type f -name Debian_*.menu -print0 | xargs -0r rm -f
#DEBHELPER#
END
cat > "debian/enlightenment-theme-bluesteel.links" <<- "END"
usr/share/doc/enlightenment-docs usr/share/doc/enlightenment-theme-bluesteel
END
cat > "debian/enlightenment-theme-brushedmetal.links" <<- "END"
usr/share/doc/enlightenment-docs usr/share/doc/enlightenment-theme-brushedmetal
END
cat > "debian/enlightenment-theme-brushedmetal.postinst" <<- "END"
#!/bin/sh
set -e
update-alternatives --install /usr/share/enlightenment/themes/DEFAULT \
enlightenment-theme-default \
/usr/share/enlightenment/themes/BrushedMetal 50
#DEBHELPER#
END
cat > "debian/enlightenment-theme-shinymetal.postinst" <<- "END"
#!/bin/sh
set -e
update-alternatives --install /usr/share/enlightenment/themes/DEFAULT \
enlightenment-theme-default \
/usr/share/enlightenment/themes/ShinyMetal 40
#DEBHELPER#
END
cat > "debian/enlightenment-theme-shinymetal.prerm" <<- "END"
#!/bin/sh
set -e
update-alternatives --remove enlightenment-theme-default \
/usr/share/enlightenment/themes/ShinyMetal
#DEBHELPER#
END
cat > "debian/enlightenment.links" <<- "END"
usr/share/doc/enlightenment-docs usr/share/doc/enlightenment
END
cat > "debian/enlightenment.menu" <<- "END"
?package(enlightenment):needs="wm" section="WindowManagers"\
title="Enlightenment" command="/usr/bin/enlightenment"
END
cat > "debian/enlightenment.menu-method" <<- "END"
#!/usr/sbin/install-menu
compat="menu-1"
genmenu=replacewith(parent($section), "/", "_") ".menu"
rootprefix="/etc/X11/enlightenment/menus"
treewalk="cm"
rootsection="Debian"
# Limit usage to root for now until we figure out how to convince the
# E menu to ignore the system menus if user menus exist
onlyrunasroot=true
function quote($target)= "\"" $target "\""
function tick($target)= "\'" $target "\'"
# choose your term here, uncomment one
function term()="Eterm -T"
#function term()="xterm -T"
#function term()="rxvt -title"
function menu()= quote(prefix() "/" replacewith($section , "/", "_") ".menu")
function icon_select()=ifelse($icon32x32, $icon32x32, \
ifelse($icon16x16, $icon16x16, $icon))
function icon()= quote(ifelse(icon_select(),icon_select(),"NULL"))
function title()= quote(esc($title,"\""))
function x11()= quote($command)
function text()= quote(term() " " tick(esc($title,"\"")) " -e " tick($command))
function wm()= quote("eesh -e " tick("restart_wm " $command))
function menu_entry($name,$icon,$action,$parameters)=\
firstentry(quote(basename($section)) "\n")\
print($name " " $icon " " $action " " $parameters "\n")
supported
x11= menu_entry( title(), icon(), quote("exec"), x11())
text= menu_entry( title(), icon(), quote("exec"), text())
wm= menu_entry( title(), icon(), quote("exec"), wm())
endsupported
submenutitle= menu_entry( title(), icon(), quote("menu"), menu())
# this stuff is unused, but has proven to be a pain if not defined
preoutput=""
postoutput=""
startmenu=""
endmenu=""
END
cat > "debian/enlightenment.prerm" <<- "END"
#!/bin/sh
set -e
find /etc/X11/enlightenment/menus -type f -name Debian_*.menu -print0 | xargs -0r rm -f
#DEBHELPER#
END
cat > "debian/enlightenment-docs.dirs" <<- "END"
usr/share/doc/enlightenment-docs
END
cat > "debian/enlightenment-dox.files" <<- "END"
usr/bin/dox
usr/share/enlightenment/E-docs
END
cat > "debian/debianize-stub.sh" <<- "END"
#!/bin/sh
# This is the Debian Enlightened Squash System. It was inspired by a mutual
# dislike of the large number of debhelper files in the e/debian/ dir. I was
# able to kill several birds with one stone, too. The debianize.sh script does
# the menu and makefile mangling and also creates the debhelper files.
# The makefile target named, squash, in the debian/rules makefile creates
# debianize.sh from debianinze-stub.sh and the various debhelper files.
# ljlane@debian.org
set -e
mv autogen.sh autogen.sh.old
sed '/srcdir\/configure/ d' autogen.sh.old > autogen.sh
chmod +x autogen.sh
mv src/themes/Makefile.am src/themes/Makefile.am.old
sed '/^install-data-local:$/,/^$/ d' src/themes/Makefile.am.old > src/themes/Makefile.am
mv src/Makefile.am src/Makefile.am.old
sed '/^install-data-local:$/,$ d' src/Makefile.am.old > src/Makefile.am
grep -q 'DEBIAN_MENU' 'src/themes/configs/menus.cfg' || \
mv "src/themes/configs/menus.cfg" "src/themes/configs/menus.cfg.old" && \
sed '/^__E_CFG_VERSION 0$/ {
a\
\
BEGIN_NEW_FILE_MENU("DEBIAN_MENU", "ROOT", "/etc/X11/enlightenment/menus/Debian.menu")\
END_MENU\
}
/^ADD_MENU_SUBMENU_TEXT_ITEM("User Menus", *"APPS_SUBMENU")$/ {
a\
ADD_MENU_SUBMENU_TEXT_ITEM("Debian", "DEBIAN_MENU")
}' 'src/themes/configs/menus.cfg.old' > 'src/themes/configs/menus.cfg'
#### end of debianize.sh, file restoration follows, creates debianize-stub.sh too ####
END
cat > "debian/enlightenment-dox.dirs" <<- "END"
usr/share/enlightenment/E-docs
END
cat > "debian/enlightenment-theme-brushedmetal.dirs" <<- "END"
usr/share/enlightenment/themes/BrushedM
END
cat > "debian/enlightenment-theme-bluesteel.dirs" <<- "END"
usr/share/enlightenment/themes/BlueSteel
END
cat > "debian/enlightenment-nosound.dirs" <<- "END"
usr/share/enlightenment/themes
END
cat > "debian/enlightenment-theme-bluesteel.postinst" <<- "END"
#!/bin/sh
set -e
update-alternatives --install /usr/share/enlightenment/themes/DEFAULT \
enlightenment-theme-default \
/usr/share/enlightenment/themes/BlueSteel 30
#DEBHELPER#
END
cat > "debian/enlightenment-theme-shinymetal.dirs" <<- "END"
usr/share/enlightenment/themes/ShinyMetal
END
cat > "debian/enlightenment-theme-shinymetal.links" <<- "END"
usr/share/doc/enlightenment-docs usr/share/doc/enlightenment-theme-shinymetal
END
cat > "debian/enlightenment.conffiles" <<- "END"
/etc/menu-methods/enlightenment
END
cat > "debian/enlightenment.dirs" <<- "END"
usr/share/enlightenment/themes
END
cat > "debian/enlightenment-theme-bluesteel.prerm" <<- "END"
#!/bin/sh
set -e
update-alternatives --remove enlightenment-theme-default \
/usr/share/enlightenment/themes/BlueSteel
#DEBHELPER#
END
cat > "debian/enlightenment-theme-brushedmetal.prerm" <<- "END"
#!/bin/sh
set -e
update-alternatives --remove enlightenment-theme-default \
/usr/share/enlightenment/themes/BrushedMetal
#DEBHELPER#
END

11
debian/menus.sedscr vendored
View File

@ -1,11 +0,0 @@
/^__E_CFG_VERSION 0$/ {
a\
\
BEGIN_NEW_FILE_MENU("DEBIAN_MENU", "ROOT", "/etc/X11/enlightenment/menus/Debian.menu")\
END_MENU\
}
/^ADD_MENU_SUBMENU_TEXT_ITEM("User Menus", *"APPS_SUBMENU")$/ {
a\
ADD_MENU_SUBMENU_TEXT_ITEM("Debian", "DEBIAN_MENU")
}

219
debian/rules vendored
View File

@ -1,135 +1,132 @@
#!/usr/bin/make -f
#!/usr/bin/make -f
#export DH_VERBOSE=1
export DH_COMPAT=2
# heavily modified debian/rules based on the
# sample debian/rules that uses debhelper.
configure_options = --enable-fsstd=yes --prefix=/usr --bindir=/usr/X11R6/bin
# original copyright info:
# GNU copyright 1997 by Joey Hess.
#SHELL = DH_COMPAT=2 DH_VERBOSE=1 /bin/ash -e
SHELL = DH_COMPAT=2 /bin/sh -e
SHELL2 := $(SHELL)
INSTALL = /usr/bin/install
pwd := $(shell pwd)
configure_options = --prefix=/usr --enable-fsstd=yes
programs = enlightenment enlightenment-nosound enlightenment-dox
docs = enlightenment-docs
themes = enlightenment-theme-ganymede enlightenment-theme-brushedmetal enlightenment-theme-shinymetal
pwd := $(shell pwd)
install_dir = $(pwd)/debian/$@
make_install_in_subdirs = set -ex; for i in $$subdirs; do $(MAKE) install DESTDIR=$(install_dir) SUBDIRS="" -C $$i; done
theme_dir = debian/$@/usr/share/enlightenment/themes
unpack_etheme = set -ex; /usr/bin/install -d -m 755 $(theme_dir)/$$etheme;tar zxf src/themes/$$etheme.etheme -C $(theme_dir)/$$etheme
remake_sound = $(MAKE) src/{sound.o,enlightenment} CFLAGS+=$$CFLAGS $$LFLAGS -C src
link_docs = dh_link usr/share/doc/enlightenment-docs usr/share/doc/$@
pre-install = @echo -e "\n--- $@"; set -ex; dh_testdir; dh_testroot; rm -rf debian/$@
build_deb = @set -ex; for i in fixperms installdeb gencontrol md5sums builddeb; do dh_$${i}; done
bin-list = $(shell for i in $(wildcard debian/$@/usr/X11R6/bin/*); do echo -n "$$(basename $$i).1x "; done)
$(programs): build
$(programs) $(docs) $(themes): dh-stamp
$(programs) $(docs) $(themes): SHELL = DH_OPTIONS=-p$@ /bin/sh -e
build: build-stamp
build: debian-stamp configure-stamp build-stamp
build-stamp:
dh_testdir
dh_testroot
./autogen.sh $(configure_options) || ./configure $(configure_options)
mv econfig.h econfig.h.old
sed -e 's@^#define HAVE_LIBESD 1$$@//* \0 */@' econfig.h.old > econfig.h
cp src/themes/configs/menus.cfg menus.cfg.old
$(MAKE)
touch $@
dh-stamp:
cd debian; $(SHELL) debhelper2.sh
configure-stamp:
test -x autogen.sh && ./autogen.sh
./configure $(configure_options)
mv econfig.h econfig.h.old; sed -n '/LIBESD/ d; w econfig.h' econfig.h.old
touch $@
debian-stamp:
$(SHELL) -x debian/debianize.sh
touch $@
clean:
dh_testdir
dh_testroot
-$(MAKE) clean
dh_clean -A
-rm build-stamp
rm -f build-stamp install-stamp
$(MAKE) clean
$(MAKE) distclean
dh_clean
enlightenment-docs:
$(pre-install)
dh_installexamples sample-scripts/*.{pl,sh}
dh_installdocs src/{README,TODO,ChangeLog-pre0.16.gz}
dh_installchangelogs
cp src/ChangeLog debian/$@/usr/share/doc/$@/changelog
dh_compress
$(build_deb)
enlightenment:
$(pre-install)
-rm -rf src/sound.o src/enlighenment
$(MAKE) sound.o enlightenment -C src CFLAGS+="-DHAVE_LIBESD"
subdirs="eesh epp src src/themes/configs scripts"; $(make_install_in_subdirs)
dh_installwm enlightenment
dh_installmenu
dh_shlibdeps
dh_strip
dh_undocumented $(bin-list)
sed -f debian/menus.sedscr src/themes/configs/menus.cfg \
> debian/$@/usr/share/enlightenment/config/menus.cfg
dh_link etc/alternatives/enlightenment-theme-default debian/enlightenment/usr/share/enlightenment/themes/DEFAULT
$(link_docs)
$(build_deb)
enlightenment-nosound:
$(pre-install)
-rm -rf src/sound.o src/enlighenment
$(MAKE) sound.o enlightenment -C src ESD_LIBS=
subdirs="eesh epp src src/themes/configs scripts"; $(make_install_in_subdirs)
dh_installwm enlightenment
dh_installmenu
dh_shlibdeps
dh_strip
dh_undocumented $(bin-list)
sed -f debian/menus.sedscr src/themes/configs/menus.cfg \
> debian/$@/usr/share/enlightenment/config/menus.cfg
$(link_docs)
dh_link etc/alternatives/enlightenment-theme-default debian/enlightenment/usr/share/enlightenment/themes/DEFAULT
$(build_deb)
install: build install-stamp
install-stamp: SHELL = DH_OPTIONS="-A" $(SHELL2)
install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean
dh_installdirs
enlightenment-dox:
$(pre-install)
subdirs="dox dox/E-docs"; $(make_install_in_subdirs)
dh_shlibdeps
dh_strip
dh_undocumented dox.1x
$(link_docs)
$(build_deb)
$(MAKE) install DESTDIR=$(pwd)/debian/tmp
enlightenment-theme-ganymede:
$(pre-install)
etheme="Ganymede"; $(unpack_etheme)
$(link_docs)
$(build_deb)
(cd debian/tmp; tar --remove-files --create --file - ./usr/bin/dox ./usr/share/enlightenment/E-docs) \
| (cd debian/enlightenment-dox; tar xpf -); rm -rf debian/tmp/usr/share/enlightenment/E-docs
(cd debian/tmp; tar --create --file - ./) \
| (cd debian/enlightenment; tar xpf -)
(cd debian/tmp; tar --remove-files --create --file - ./) \
| (cd debian/enlightenment-nosound; tar xpf -)
gunzip -dc src/themes/BrushedMetal-Tigert.etheme \
| (cd debian/enlightenment-theme-brushedmetal/usr/share/enlightenment/themes/BrushedM; tar xpf -)
gunzip -dc src/themes/ShinyMetal.etheme \
| (cd debian/enlightenment-theme-shinymetal/usr/share/enlightenment/themes/ShinyMetal; tar xpf -)
gunzip -dc src/themes/BlueSteel.etheme \
| (cd debian/enlightenment-theme-bluesteel/usr/share/enlightenment/themes/BlueSteel; tar xpf -)
enlightenment-theme-brushedmetal:
$(pre-install)
etheme="BrushedMetal-Tigert"; $(unpack_etheme)
cd $(theme_dir); rm -rf BrushedMetal && mv BrushedMetal-Tigert BrushedMetal
find $(theme_dir) -name '*~' -type f | xargs rm -rf
$(link_docs)
$(build_deb)
rm -f src/sound.o src/enlightenment
$(MAKE) sound.o enlightenment -C src CFLAGS+="-DHAVE_LIBESD" SUBDIRS=
$(INSTALL) -m 755 src/enlightenment debian/enlightenment/usr/bin/
dh_installwm -penlightenment enlightenment
enlightenment-theme-shinymetal:
$(pre-install)
etheme="ShinyMetal"; $(unpack_etheme)
find $(theme_dir) -name '*~' -type f | xargs rm -rf
find $(theme_dir) -name .cvsignore -type f | xargs rm -rf
find $(theme_dir) -name CVS -type d | xargs rm -rf
$(link_docs)
$(build_deb)
rm -f src/sound.o src/enlightenment
$(MAKE) sound.o enlightenment -C src ESD_LIBS= SUBDIRS=
$(INSTALL) -m 755 src/enlightenment debian/enlightenment-nosound/usr/bin/
dh_installwm -penlightenment-nosound enlightenment
$(INSTALL) -m 644 AUTHORS INSTALL README debian/enlightenment-docs/usr/share/doc/enlightenment-docs/
$(INSTALL) -m 644 src/ChangeLog debian/enlightenment-docs/usr/share/doc/enlightenment-docs/changelog
dh_installchangelogs -penlightenment-docs
dh_compress -penlightenment-docs
dh_installdocs
find debian -path 'debian/enlightenment*/share/doc*' ! -path 'debian/enlightenment-docs*' \
-type d -name 'enlightenment*' -print0 | xargs -0r rm -rf
for p in $(programs); \
do \
dh_undocumented -p$$p $$(ls debian/$$p/usr/bin | sed 's#$$#.1 #g' | xargs); \
done
touch install-stamp
commit: squash
cvs commit
binary-indep: SHELL = DH_OPTIONS="-i" $(SHELL2)
binary-indep: build install
dh_testversion 2
dh_testdir
dh_testroot
dh_link
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary-arch: SHELL = DH_OPTIONS="-a" $(SHELL2)
binary-arch: build install
dh_testversion 2
dh_testdir
dh_testroot
dh_installmenu
dh_strip
dh_link
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
squash:
set -e; cd debian; files=$$(find -maxdepth 1 -type f -name enlightenment\*); \
echo -e "#!/bin/sh\n\n# debhelper2.sh - creates e\'s debhelper support files\n\n" > debhelper2.sh; \
(for i in $$files; do echo "cat > \"$$i\" <<- \"END\""; cat $$i; echo -e "END\n\n"; done) >> debhelper2.sh
binary-arch: build $(programs)
rm -vf debian/*.debhelper debian/*.substvars debian/*~ debian/debianize.sh; \
files=$$(find debian -maxdepth 1 -type f \( -name enlightenment\* -o -name debianize-stub.sh \)); \
echo -e "Squashing: ...\n$$files"; \
cat -s debian/debianize-stub.sh > debian/debianize.sh; \
(for i in $$files; \
do echo -e "cat > \"$$i\" <<- \"END\""; \
cat $$i ; echo -e "\nEND\n"; \
done) | cat -s >> debian/debianize.sh; \
echo " ...done!"
binary-indep: $(docs) $(themes)
binary: build $(docs) $(programs) $(themes)
.PHONY: clean binary-indep binary-arch binary package-% $(docs) $(themes) $(programs)
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install