diff options
author | Martin Väth <martin@mvath.de> | 2016-09-02 20:14:56 +0200 |
---|---|---|
committer | Martin Väth <martin@mvath.de> | 2016-09-02 20:17:20 +0200 |
commit | c034992692c333249503a819f0d3f9c9c0eec256 (patch) | |
tree | 95614e090b7cf8f47e144f9d4eafc048c9de4cf8 /x11-libs | |
parent | x11-libs/gtk+: Add from gnome-next, but with sane dependencies (diff) | |
download | mv-c034992692c333249503a819f0d3f9c9c0eec256.tar.gz mv-c034992692c333249503a819f0d3f9c9c0eec256.tar.bz2 mv-c034992692c333249503a819f0d3f9c9c0eec256.zip |
x11-libs/motif: Copy from gentoo repository to dump dev-util/byacc dep
Diffstat (limited to 'x11-libs')
-rw-r--r-- | x11-libs/motif/Manifest | 2 | ||||
-rw-r--r-- | x11-libs/motif/files/Mwm.defaults | 14 | ||||
-rw-r--r-- | x11-libs/motif/metadata.xml | 13 | ||||
-rw-r--r-- | x11-libs/motif/motif-2.3.6.ebuild | 117 |
4 files changed, 146 insertions, 0 deletions
diff --git a/x11-libs/motif/Manifest b/x11-libs/motif/Manifest new file mode 100644 index 00000000..d8f7e14b --- /dev/null +++ b/x11-libs/motif/Manifest @@ -0,0 +1,2 @@ +DIST motif-2.3.5-patches-1.tar.xz 1408 SHA256 7c3e8fd55397e99c319652d1054156d4e62528f71cf85986417e20b5da66fef5 SHA512 cb157630f0c301e0cb6e5d17668486db41d90cf540ced234c96742e0ec7258fb2596a349a84db9fd4ac621f3cd019cdd89cdadce596a70ea1dec91cc69dd3351 WHIRLPOOL dccc460ec7eb00114470445caed7c92814d1b64b29338d5f2e57064fe71f198bc8d6eae45c702d4d20c3b6e6b6c9efb050fd639bf4481cf8770f112f6461eb59 +DIST motif-2.3.6.tar.gz 5725456 SHA256 fa810e6bedeca0f5a2eb8216f42129bcf6bd23919068d433e386b7bfc05d58cf SHA512 65c2d7666a916ab38878008915072317752ee2657ebaff869d274f9f9d9fba3ebfbb82c26d2517f3b9035e059ac99a9bf46d4be8d123115e3b23589517d28e60 WHIRLPOOL 88a88dbdeefce4ff01a5018f16cc687e9ac86af67344c5c292d0508abcada17d8dc7d65df2c2e6e4904d6c8524552e2607f1a926a745fe3196f866d9c5f93294 diff --git a/x11-libs/motif/files/Mwm.defaults b/x11-libs/motif/files/Mwm.defaults new file mode 100644 index 00000000..ea91b6fb --- /dev/null +++ b/x11-libs/motif/files/Mwm.defaults @@ -0,0 +1,14 @@ +Mwm*fontList: variable +Mwm*iconClick: False +Mwm*iconPlacement: top left +Mwm*moveOpaque: True +Mwm*rootButtonClick: True +Mwm*foreground: #000000 +Mwm*background: #B8B8C0 +Mwm*enableThinThickness: True +Mwm*enableEtchedInMenu: True +Mwm*menu*fontList: -adobe-helvetica-medium-r-*--*-120-*-*-*-*-*-* +Mwm*client*title*fontList: -adobe-helvetica-bold-r-*--*-100-*-*-*-*-*-* +Mwm*icon*fontList: -adobe-helvetica-bold-r-*--*-80-*-*-*-*-*-* +Mwm*feedback*fontList: -adobe-helvetica-bold-r-*--*-100-*-*-*-*-*-* +Mwm*multiClickTime: 300 diff --git a/x11-libs/motif/metadata.xml b/x11-libs/motif/metadata.xml new file mode 100644 index 00000000..40ef2c33 --- /dev/null +++ b/x11-libs/motif/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>ulm@gentoo.org</email> + </maintainer> + <use> + <flag name="motif22-compatibility">Compatibility with Open Motif 2.2</flag> + </use> + <upstream> + <remote-id type="sourceforge">motif</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-libs/motif/motif-2.3.6.ebuild b/x11-libs/motif/motif-2.3.6.ebuild new file mode 100644 index 00000000..d4ad44dd --- /dev/null +++ b/x11-libs/motif/motif-2.3.6.ebuild @@ -0,0 +1,117 @@ +# Copyright 2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils flag-o-matic multilib toolchain-funcs multilib-minimal + +DESCRIPTION="The Motif user interface component toolkit" +HOMEPAGE="https://sourceforge.net/projects/motif/ + http://motif.ics.com/" +SRC_URI="mirror://sourceforge/project/motif/Motif%20${PV}%20Source%20Code/${P}.tar.gz + http://dev.gentoo.org/~ulm/distfiles/${PN}-2.3.5-patches-1.tar.xz" + +LICENSE="LGPL-2.1+ MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="examples jpeg +motif22-compatibility png static-libs unicode xft" + +RDEPEND="abi_x86_32? ( !app-emulation/emul-linux-x86-motif[-abi_x86_32(-)] ) + >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] + >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] + >=x11-libs/libXmu-1.1.1-r1[${MULTILIB_USEDEP}] + >=x11-libs/libXp-1.0.2[${MULTILIB_USEDEP}] + >=x11-libs/libXt-1.1.4[${MULTILIB_USEDEP}] + jpeg? ( >=virtual/jpeg-0-r2:0=[${MULTILIB_USEDEP}] ) + png? ( >=media-libs/libpng-1.6.10:0=[${MULTILIB_USEDEP}] ) + unicode? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] ) + xft? ( + >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] + >=x11-libs/libXft-2.3.1-r1[${MULTILIB_USEDEP}] + )" + +DEPEND="${RDEPEND} + sys-devel/flex + || ( sys-devel/bison dev-util/byacc sys-freebsd/freebsd-ubin ) + x11-misc/xbitmaps" + +src_prepare() { + eapply ../patch + eapply_user + + # disable compilation of demo binaries + sed -i -e '/^SUBDIRS/{:x;/\\$/{N;bx;};s/[ \t\n\\]*demos//;}' Makefile.am + + # add X.Org vendor string to aliases for virtual bindings + echo -e '"The X.Org Foundation"\t\t\t\t\tpc' >>bindings/xmbind.alias + + # remove header file which shouldn't be in the tarball #578168 + rm lib/Xm/Xm.h || die + + AT_M4DIR=. eautoreconf + + # get around some LANG problems in make (#15119) + LANG=C + + # bug #80421 + filter-flags -ftracer + + # feel free to fix properly if you care + append-flags -fno-strict-aliasing + + # for Solaris Xos_r.h :( + [[ ${CHOST} == *-solaris2.11 ]] \ + && append-cppflags -DNEED_XOS_R_H -DHAVE_READDIR_R_3 + + if use !elibc_glibc && use !elibc_uclibc && use unicode; then + # libiconv detection in configure script doesn't always work + # http://bugs.motifzone.net/show_bug.cgi?id=1423 + export LIBS="${LIBS} -liconv" + fi + + # "bison -y" causes runtime crashes #355795 + #export YACC=byacc + + # remember the name of the C compiler for the native ABI + MY_NATIVE_CC=$(tc-getCC) +} + +multilib_src_configure() { + ECONF_SOURCE="${S}" econf \ + --with-x \ + $(use_enable static-libs static) \ + $(use_enable motif22-compatibility) \ + $(use_enable unicode utf8) \ + $(use_enable xft) \ + $(use_enable jpeg) \ + $(use_enable png) +} + +multilib_src_compile() { + # The wmluiltok build tool is linked with libfl.a, so always + # compile it for the native ABI + emake -C tools/wml CC="${MY_NATIVE_CC}" LIBS="-lfl" wmluiltok + emake +} + +multilib_src_install() { + emake DESTDIR="${D}" install + + if multilib_is_native_abi && use examples; then + emake -C demos DESTDIR="${D}" install-data + dodir /usr/share/doc/${PF}/demos + mv "${ED}"/usr/share/Xm/* "${ED}"/usr/share/doc/${PF}/demos || die + fi +} + +multilib_src_install_all() { + # mwm default configs + insinto /usr/share/X11/app-defaults + newins "${FILESDIR}"/Mwm.defaults Mwm + + # cleanup + rm -rf "${ED}"/usr/share/Xm + prune_libtool_files + + dodoc BUGREPORT ChangeLog README RELEASE RELNOTES TODO +} |