From dd3ea7a799bee1bfc85f94f3e475bab5797eeff0 Mon Sep 17 00:00:00 2001 From: Heinrich Wendel Date: Tue, 26 Apr 2005 13:58:54 +0000 Subject: motif-config-0.9 (Portage version: 2.0.51.19) --- x11-libs/motif-config/ChangeLog | 8 +- x11-libs/motif-config/Manifest | 17 +- .../motif-config/files/digest-motif-config-0.9 | 0 x11-libs/motif-config/files/motif-config-0.9 | 289 +++++++++++++++++++++ x11-libs/motif-config/files/system.mwmrc | 186 +++++-------- x11-libs/motif-config/motif-config-0.9.ebuild | 86 ++++++ 6 files changed, 455 insertions(+), 131 deletions(-) create mode 100644 x11-libs/motif-config/files/digest-motif-config-0.9 create mode 100755 x11-libs/motif-config/files/motif-config-0.9 create mode 100644 x11-libs/motif-config/motif-config-0.9.ebuild (limited to 'x11-libs/motif-config') diff --git a/x11-libs/motif-config/ChangeLog b/x11-libs/motif-config/ChangeLog index a56d7db7017d..8ff51723a8e2 100644 --- a/x11-libs/motif-config/ChangeLog +++ b/x11-libs/motif-config/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for x11-libs/motif-config # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/motif-config/ChangeLog,v 1.12 2005/03/25 07:27:38 lanius Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-libs/motif-config/ChangeLog,v 1.13 2005/04/26 13:56:50 lanius Exp $ + +*motif-config-0.9 (26 Apr 2005) + + 26 Apr 2005; Heinrich Wendel +files/motif-config-0.9, + files/system.mwmrc, +motif-config-0.9.ebuild: + block old versions to prevent upgrade bugs; hopefully fix outstanding bugs *motif-config-0.8 (25 Mar 2005) diff --git a/x11-libs/motif-config/Manifest b/x11-libs/motif-config/Manifest index 9ea1b386ed19..5ef0d709b19f 100644 --- a/x11-libs/motif-config/Manifest +++ b/x11-libs/motif-config/Manifest @@ -1,25 +1,18 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - +MD5 358a8ada853297e474f8fd40cd130705 motif-config-0.9.ebuild 2404 MD5 33bcba9885d6419bbb4e22eed35676ab motif-config-0.6.ebuild 1239 MD5 f18c8f14b63a3439113068b5a89e193b motif-config-0.8.ebuild 1239 -MD5 184853ab143f09f61dc9c65155271970 ChangeLog 2601 +MD5 47dbf9f52c73b0c93cf1cdc53fef61ad ChangeLog 2836 MD5 503ccb1138f9c49f0855884d830988a6 metadata.xml 253 MD5 b57f5a2346d07273acd7e675d3f5d8cc motif-config-0.7.ebuild 1239 MD5 76af3b1b80127315546ef5ea7f5875e1 files/bindings.tbz2 5342 MD5 ea7dd0dd1e039ef38db246c23f4d9422 files/motif-config-0.6 7347 MD5 850befc48daae3dd492f9e263c6dfd4a files/motif-config-0.7 7014 MD5 a4ba585f1a15d0800a1906e20659c1ce files/motif-config-0.8 7166 -MD5 beb566e653a0a239409d76dc502c87e1 files/system.mwmrc 4358 +MD5 3a565c0fb8345038591f50aa943aed1b files/motif-config-0.9 5403 +MD5 d46916eb64babb223c9c511cf7d042a6 files/system.mwmrc 2964 MD5 aaf04376f7011a2f68b7961100f611fb files/Mwm.defaults 536 MD5 b4cca983e552045606f845e17a00e1d6 files/bitmaps.tbz2 3165 MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-motif-config-0.6 0 MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-motif-config-0.7 0 MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-motif-config-0.8 0 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.1 (GNU/Linux) - -iD8DBQFCQ73ievY57Fted3ERAhI+AJ9ENOFhFjmAhDIiVzu/MDVs98Mc1ACeOhXR -QyqJpZ0+V2wFUa5Ji5vBOmw= -=j6Ol ------END PGP SIGNATURE----- +MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-motif-config-0.9 0 diff --git a/x11-libs/motif-config/files/digest-motif-config-0.9 b/x11-libs/motif-config/files/digest-motif-config-0.9 new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/x11-libs/motif-config/files/motif-config-0.9 b/x11-libs/motif-config/files/motif-config-0.9 new file mode 100755 index 000000000000..d749184ccaf7 --- /dev/null +++ b/x11-libs/motif-config/files/motif-config-0.9 @@ -0,0 +1,289 @@ +#!/bin/bash +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# based on gcc-config by Martin Schlemmer + +umask 022 + +PROFILE_PATH=/usr/@@LIBDIR@@/motif +CONFIG_FILE=${PROFILE_PATH}/current + +usage() { +cat << "USAGE_END" +Usage: motif-config [option] [profile] +Change the current motif profile, or give info about profiles. + +Options: + + -c, --get-current-profile Print current used motif profile. + + -l, --list-profiles Print a list of available profiles. + + -s, --set-profile Set the current profile. + + -L, --get-lib-path Print path where libraries of the given/current + profile are located. + + -I, --get-inc-path Print path where includes of the given/current + profile are located. + + --libs Print link flags for the given/current + profile. + + --cflags Print compilation flags for the given/current + profile. + +USAGE_END + exit $1 +} +[[ $# -lt 1 ]] && usage 1 +[[ $# -gt 2 ]] && usage 1 + +# redefine eerror/einfo to remove baselayout dep +# to make ppc-macos people happy +eerror() { + echo -e " \e[31;01m*\e[0m $*"; + exit 1 +} +einfo() { + echo -e " \e[32;01m*\e[0m $*"; +} + +_check_root() { + if [[ "$(id -u)" -ne 0 ]] ; then + eerror "$0: Must be root." + exit 1 + fi +} + +_activate_profile() { + _check_root + + if [ -z "${1}" ]; then + return 0 + fi + + # set new profile as default + new=${1} + files="" + # libs + for file in `ls /usr/@@LIBDIR@@/${new}/ | grep lib`; do + files="${files} /usr/@@LIBDIR@@/${file}" + rm -f /usr/@@LIBDIR@@/${file} + ln -s /usr/@@LIBDIR@@/${new}/${file} /usr/@@LIBDIR@@/${file} + done + # includes + for file in `ls /usr/include/${new}/`; do + files="${files} /usr/include/${file}" + rm -f /usr/include/${file} + ln -s /usr/include/${new}/${file} /usr/include/${file} + done + # binaries + for file in `ls /usr/@@LIBDIR@@/${new} | grep -v lib`; do + files="${files} /usr/bin/${file}" + rm -f /usr/bin/${file} + ln -s /usr/@@LIBDIR@@/${new}/${file} /usr/bin/${file} + done + # man pages + for file in `find /usr/share/man -regex ".*-${new}\..x?.gz"`; do + files="${files} ${file/-${new}/}" + rm -f ${file/-${new}/} + ln -s ${file} ${file/-${new}/} + done + + cat ${PROFILE_PATH}/${new} > ${CONFIG_FILE} + echo "FILES='${files}'" >> ${CONFIG_FILE} + + return $? +} + +_deactivate_profile() { + _check_root + + source ${CONFIG_FILE} 2>/dev/null + current=${PROFILE} + + if [ -z "$current" ]; then + return 0 + fi + + for file in ${FILES}; do + rm -f ${file} + done + + rm -f ${CONFIG_FILE} + + return $? +} + +switch_profile() { + _check_root + + if [ -n "$1" ]; then + if [ ! -e ${PROFILE_PATH}/${1} ]; then + eerror "$0: no such profile ${1}" + else + _deactivate_profile + _activate_profile $1 + fi + else + source ${CONFIG_FILE} 2> /dev/null + _deactivate_profile + if [ -z "${PROFILE}" -o ! -f ${PROFILE_PATH}/${PROFILE} ]; then + for y in `ls ${PROFILE_PATH} | grep -v removed | grep -v current | sort -r`; do + _activate_profile ${y} + break + done + if [ -z "${y}" ]; then + eerror "$0: no profile to activate" + fi + else + _activate_profile ${PROFILE} + fi + fi + + source ${CONFIG_FILE} 2>/dev/null + einfo "$0: New default Profile is: ${PROFILE}" + + return $? +} + +get_current_profile() { + source ${CONFIG_FILE} 2> /dev/null + echo ${PROFILE} +} + +list_profiles() { + i=1 + source ${CONFIG_FILE} 2> /dev/null + current=${PROFILE} + for y in `ls ${PROFILE_PATH} | grep -v current | grep -v removed`; do + source ${PROFILE_PATH}/${y} + output="[${i}] ${PROFILE}"; + if [ "${y}" = "${current}" ]; then + output="${output} *" + fi + echo "$output" + i=$((i + 1)) + done + exit $? +} + +get_lib_path() { + if [ "$1" != "" ]; then + file=${1} + else + file="current" + fi + source ${PROFILE_PATH}/${file} + if [ $? -eq 1 ]; then + eerror "$0: No such profile: $profile" + else + echo "/usr/@@LIBDIR@@/${PROFILE}/" + exit 0 + fi +} + +get_inc_path() { + if [ "$1" != "" ]; then + file=${1} + else + file="current" + fi + source ${PROFILE_PATH}/${file} + if [ $? -eq 1 ]; then + eerror "$0: No such profile: $profile" + else + echo "/usr/include/${PROFILE}/" + exit 0 + fi +} + +get_cflags() { + if [ "$1" != "" ]; then + file=${1} + else + file="current" + fi + source ${PROFILE_PATH}/${file} + if [ $? -eq 1 ]; then + eerror "$0: No such profile: $profile" + else + echo "-I/usr/include/${PROFILE}/" + exit 0 + fi +} + +get_libs() { + if [ "$1" != "" ]; then + file=${1} + else + file="current" + fi + source ${PROFILE_PATH}/${file} + if [ $? -eq 1 ]; then + eerror "$0: No such profile: $profile" + else + echo "-L/usr/@@LIBDIR@@/${PROFILE}/" + exit 0 + fi +} + +for x in "$@"; do + case "${x}" in + -c|--get-current-profile) + [[ $# -ne 1 ]] && usage 1 + get_current_profile + ;; + + -l|--list-profiles) + [[ $# -ne 1 ]] && usage 1 + list_profiles + ;; + + -s|--set-profile) + [[ $# -gt 2 ]] && usage 1 + switch_profile $2 + exit $? + ;; + + -L|--get-lib-path) + [[ $# -gt 2 ]] && usage 1 + get_lib_path $2 + ;; + + -I|--get-inc-path) + [[ $# -gt 2 ]] && usage 1 + get_inc_path $2 + ;; + + --cflags) + [[ $# -gt 2 ]] && usage 1 + get_cflags $2 + ;; + + --libs) + [[ $# -gt 2 ]] && usage 1 + get_libs $2 + ;; + + -h|--help) + usage 0 + ;; + + -v|--version) + echo "motif-config-0.9" + exit 0 + ;; + + -*) + usage 1 + ;; + + *) + usage 1 + ;; + + esac +done diff --git a/x11-libs/motif-config/files/system.mwmrc b/x11-libs/motif-config/files/system.mwmrc index d530bac6706f..eae1d6785dd6 100644 --- a/x11-libs/motif-config/files/system.mwmrc +++ b/x11-libs/motif-config/files/system.mwmrc @@ -1,125 +1,71 @@ -! -! @OPENGROUP_COPYRIGHT@ -! COPYRIGHT NOTICE -! Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc. -! Copyright (c) 1996, 1997, 1998, 1999, 2000 The Open Group -! ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for -! the full copyright text. -! -! This software is subject to an open license. It may only be -! used on, with or for operating systems which are themselves open -! source systems. You must contact The Open Group for a license -! allowing distribution and sublicensing of this software on, with, -! or for operating systems which are not Open Source programs. -! -! See http://www.opengroup.org/openmotif/license for full -! details of the license agreement. Any use, reproduction, or -! distribution of the program constitutes recipient's acceptance of -! this agreement. -! -! EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS -! PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -! KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY -! WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY -! OR FITNESS FOR A PARTICULAR PURPOSE -! -! EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT -! NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, -! INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -! DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED -! AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -! LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -! ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE -! EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE -! POSSIBILITY OF SUCH DAMAGES. -! -! $XConsortium: system.mwmrc /main/9 1996/10/25 11:45:42 drk $ -! -! HISTORY -! - -!! -!! DEFAULT Mwm RESOURCE DESCRIPTION FILE (system.mwmrc) -!! -!! NOTE: To personalize this file, copy this file before editing it. -!! Personalize copies of the Mwm resource file typically -!! reside as: -!! -!! $HOME/.mwmrc !! - -!! -!! Root Menu Description (this menu must be explicitly posted via f.menu) +!! $Id: system.mwmrc,v 1.2 2005/04/26 13:56:50 lanius Exp $ +!! Root Menu Description !! - Menu DefaultRootMenu { - "Root Menu" f.title - "New Window" f.exec "xterm &" + "Root Menu" f.title + "New Window" f.exec "xterm -e /bin/bash &" "Shuffle Up" f.circle_up "Shuffle Down" f.circle_down - "Refresh" f.refresh + "Refresh" f.refresh "Pack Icons" f.pack_icons -! "Toggle Behavior..." f.set_behavior - no-label f.separator - "Restart..." f.restart - "Quit..." f.quit_mwm - -} - -Menu RootMenu_1.1 -{ - "Root Menu" f.title - "New Window" f.exec "xterm &" - "Shuffle Up" f.circle_up - "Shuffle Down" f.circle_down - "Refresh" f.refresh -! "Pack Icons" f.pack_icons -! "Toggle Behavior" f.set_behavior - no-label f.separator + "Toggle Behavior..." f.set_behavior + no-label f.separator "Restart..." f.restart + "Restart fvwm" f.restart - "fvwm" + "Screen next" f.screen - "next" + "Screen prev" f.screen - "prev" + "Screen back" f.screen - "back" + "Screen 0" f.screen - "0" + "Screen 1" f.screen - "1" + "Screen 3" f.screen - "3" + "Screen -1" f.screen - "-1" + "Quit..." f.quit_mwm } !! -!! Default Window Menu Description +!! Default Window Menu !! - Menu DefaultWindowMenu { Restore _R AltF5 f.restore - Move _M AltF7 f.move - Size _S AltF8 f.resize - Minimize _n AltF9 f.minimize - Maximize _x AltF10 f.maximize - Lower _L AltF3 f.lower + Move _M AltF7 f.move + Size _S AltF8 f.resize + Minimize _n AltF9 f.minimize + Maximize _x AltF10 f.maximize + Raise _a AltF2 f.raise + Lower _L AltF3 f.lower no-label f.separator - Close _C AltF4 f.kill + Close _C AltF4 f.kill } !! -!! Key Binding Description +!! Default Key Bindings !! - Keys DefaultKeyBindings { - ShiftEscape window|icon f.post_wmenu - Altspace window|icon f.post_wmenu - AltTab root|icon|window f.next_key - Alt ShiftTab root|icon|window f.prev_key - AltEscape root|icon|window f.circle_down - Alt ShiftEscape root|icon|window f.circle_up + ShiftEscape window|icon f.post_wmenu + Altspace window|icon f.post_wmenu + AltTab root|icon|window f.next_key + Alt ShiftTab root|icon|window f.prev_key + AltEscape root|icon|window f.circle_down + Alt ShiftEscape root|icon|window f.circle_up Alt Shift Ctrlexclam root|icon|window f.set_behavior - AltF6 window f.next_key transient - Alt ShiftF6 window f.prev_key transient - ShiftF10 icon f.post_wmenu -! Alt ShiftDelete root|icon|window f.restart + AltF6 window f.next_key transient + Alt ShiftF6 window f.prev_key transient + ShiftF10 icon f.post_wmenu + Alt ShiftDelete root|icon|window f.restart + F11 root|icon|window f.screen - "next" + AltF11 root|icon|window f.screen - "prev" } !! !! Button Binding Description(s) !! - +!! These can be used anywhere +!! Buttons DefaultButtonBindings { icon|frame f.raise @@ -127,30 +73,34 @@ Buttons DefaultButtonBindings root f.menu DefaultRootMenu } -Buttons ExplicitButtonBindings -{ - frame|icon f.raise - frame|icon f.post_wmenu - root f.menu DefaultRootMenu -! icon f.restore - Alt window|icon f.lower -! Alt window|icon f.resize -! Alt window|icon f.move - -} - -Buttons PointerButtonBindings -{ - frame|icon f.raise - frame|icon f.post_wmenu - root f.menu DefaultRootMenu - window f.raise -! icon f.restore - Alt window|icon f.lower -! Alt window|icon f.resize -! Alt window|icon f.move -} - !! -!! END OF mwm RESOURCE DESCRIPTION FILE +!! These are some example bindings that you might use if your +!! keyboardFocusPolicy is "explicit". Note that to use these, you'll +!! have to change the Mwm*buttonBindings resource in Mwm to +!! ExplicitButtonBindings instead of DefaultButtonBindings. +!! +!!Buttons ExplicitButtonBindings +!!{ +!! frame|icon f.post_wmenu +!! icon f.restore +!! Alt window|icon f.lower +!! Alt window|icon f.resize +!! Alt window|icon f.move +!!} +!! +!! These are some example bindings that you might use if your +!! keyboardFocusPolicy is "pointer". Note that to use these, you'll +!! have to change the Mwm*buttonBindings resource in Mwm to +!! PointerButtonBindings instead of DefaultButtonBindings. !! +!!Buttons PointerButtonBindings +!!{ +!! frame|icon f.raise +!! frame|icon f.post_wmenu +!! root f.menu DefaultRootMenu +!! window f.raise +!! icon f.restore +!! Alt window|icon f.lower +!! Alt window|icon f.resize +!! Alt window|icon f.move +!!} diff --git a/x11-libs/motif-config/motif-config-0.9.ebuild b/x11-libs/motif-config/motif-config-0.9.ebuild new file mode 100644 index 000000000000..b9b7a6a4a487 --- /dev/null +++ b/x11-libs/motif-config/motif-config-0.9.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/motif-config/motif-config-0.9.ebuild,v 1.1 2005/04/26 13:56:50 lanius Exp $ + +inherit multilib + +DESCRIPTION="Utility to change the default Motif library" +HOMEPAGE="http://www.gentoo.org/" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~ppc-macos ~sparc ~x86" +IUSE="" + +DEPEND="!