summaryrefslogtreecommitdiff
path: root/games-arcade/xbill
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-arcade/xbill
reinit the tree, so we can have metadata
Diffstat (limited to 'games-arcade/xbill')
-rw-r--r--games-arcade/xbill/Manifest7
-rw-r--r--games-arcade/xbill/files/xbill-2.1-gentoo.patch353
-rw-r--r--games-arcade/xbill/files/xbill-2.1-gtk2.patch18
-rw-r--r--games-arcade/xbill/metadata.xml8
-rw-r--r--games-arcade/xbill/xbill-2.1-r2.ebuild40
5 files changed, 426 insertions, 0 deletions
diff --git a/games-arcade/xbill/Manifest b/games-arcade/xbill/Manifest
new file mode 100644
index 000000000000..e8b9663fe20f
--- /dev/null
+++ b/games-arcade/xbill/Manifest
@@ -0,0 +1,7 @@
+AUX xbill-2.1-gentoo.patch 9281 SHA256 8b92c957b2171547eb3ffaa243c5aa28fb5f2bd67e06aadae918c960303775e6 SHA512 81bdcb950260b6d8b52b9857d1d09b351b422df5789319873ea6e6f2431559c6a0a5a963a87313ed23b2a496d570c6c02e50df2c22f4195c48506f7711a740b8 WHIRLPOOL af6e36767f915dac4c5e0a7a98abe6b34d17ccfbd052fe658fa69f308f01487aef883e32591ec1c6c7bea3d5754f2314af85aa97e5619e176846e932afa48711
+AUX xbill-2.1-gtk2.patch 582 SHA256 6c9806a0f212843b7c48b5dc647180fd297b3b78e1646ffa1f8c8f2259072fac SHA512 628db81665e33431391f8756969c97bcb4514ad91c3248470204c41b386b01b3e2733d7a8a524f282b304e7fa5eafdf77ec6a7e4f1c45cadc09e6a3a355359f7 WHIRLPOOL d201cfe7a9f48994f4bb1088b53fb5e40ef8c99c4c513577311909327393d76e29643bed471707e1391bda47e4904d2584695953fbe0b8f3ee42a7a4ea954374
+DIST xbill-2.1.tar.gz 77610 SHA256 0efdfff1ce2df70b7a15601cb488cd7b2eb918d21d78e877bd773f112945608d SHA512 127604d88258db0ec47084209c656f8817146d70b0fe16f5a1d79883415cf38200594834b39080d78c627104ae6d204f3c12caf127fa094108c4edfbfa98d966 WHIRLPOOL 2c3a68d4b5873f63d4f9f68507a1647692222aa0a04b95a416a07846d60e924059ebc8b614c148e5fedf255c52a4d3d273a0ebfa525ca1eca2704e9f54d0a1d2
+EBUILD xbill-2.1-r2.ebuild 785 SHA256 9bb92a7bda020f947a8d6c4af78cf4144a26d75d87ac40464e113080e9c4eaf7 SHA512 43b1ced4345cf7680e7d78aa8695b766e9b2d71d6df85c10374ce91f49b2d83784e070307aa256b9ed5ccc7152ecff3c19ebe8834ef7b1f9ec9d73be5cb9c6d2 WHIRLPOOL 2ff3a599e17fe9140f474dc73ae18cd216317c0f834a856addbf86680d0ac011fd5a936765f9e540c937be48c488dfb346d01921134d3a63eea20fd77a653694
+MISC ChangeLog 2489 SHA256 66d5a7d471ae877b42e7da6f5c01491700dc52c17b70d7fad175251fd1c74e3e SHA512 44ab4c57ee08ea9299d5b9eff8d2c000c5000fc0ad20251414ce8d624cc0ab36ccf314c7eadf9e94eeed99e27a3a1ef8b8c8e076cef93bf8d597199919443b80 WHIRLPOOL a9be5d0b19f0c694a3836ef3dc976d72d1312039e952555faf0d10cf66d630aa7a32ee812eacd45e7c72a013f747a95ffc3d309a5b35abb9387a8ec06371da4f
+MISC ChangeLog-2015 2735 SHA256 25b2772ed9e369be58c27bd10681ba284d0b324ec58808ff2a3793171b5607de SHA512 4f2c4a2b002b4c40bc659b832da2122c0d6d89ef7c4118f50c39174e532b317c45bc3cef8932f518f9c076fa21c40ce148c7670afaba0c77ba57bf303175ce60 WHIRLPOOL 5427cbc48a3f9b6e57da82f3f20048baa7915117f12ea04e17489d2d0d98abaac09486a8dd48c719c25b6cd178599fa3aa6cf3cfa215d38422f9923e7cb0b11b
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-arcade/xbill/files/xbill-2.1-gentoo.patch b/games-arcade/xbill/files/xbill-2.1-gentoo.patch
new file mode 100644
index 000000000000..3446de74c92d
--- /dev/null
+++ b/games-arcade/xbill/files/xbill-2.1-gentoo.patch
@@ -0,0 +1,353 @@
+diff -urN xbill-2.1.orig/bitmaps/gentoo.xbm xbill-2.1/bitmaps/gentoo.xbm
+--- xbill-2.1.orig/bitmaps/gentoo.xbm 1970-01-01 01:00:00.000000000 +0100
++++ xbill-2.1/bitmaps/gentoo.xbm 2008-08-23 00:48:57.000000000 +0200
+@@ -0,0 +1,11 @@
++#define gentoo_width 28
++#define gentoo_height 24
++static unsigned char gentoo_bits[] = {
++ 0x00, 0x69, 0x00, 0x00, 0x20, 0x80, 0x03, 0x00, 0x10, 0x00, 0x0e, 0x00,
++ 0x08, 0x00, 0x18, 0x00, 0x04, 0x00, 0x70, 0x00, 0x02, 0xc0, 0xa5, 0x00,
++ 0x02, 0xf0, 0x69, 0x00, 0x02, 0xf8, 0xc1, 0x01, 0x06, 0xe0, 0x5a, 0x01,
++ 0x0c, 0x00, 0xa0, 0x03, 0x38, 0x00, 0x54, 0x01, 0xe0, 0x00, 0xa8, 0x09,
++ 0x00, 0x00, 0x52, 0x04, 0x00, 0x00, 0x2a, 0x06, 0x00, 0x00, 0x14, 0x03,
++ 0x00, 0x80, 0x82, 0x00, 0x00, 0x00, 0x61, 0x00, 0x00, 0x20, 0x38, 0x00,
++ 0x00, 0x00, 0x0e, 0x00, 0x00, 0x80, 0x03, 0x00, 0x01, 0xe0, 0x00, 0x00,
++ 0x02, 0x7c, 0x00, 0x00, 0xfe, 0x0f, 0x00, 0x00, 0xf8, 0x01, 0x00, 0x00 };
+diff -urN xbill-2.1.orig/gtk.c xbill-2.1/gtk.c
+--- xbill-2.1.orig/gtk.c 2001-10-30 19:28:27.000000000 +0100
++++ xbill-2.1/gtk.c 2008-08-23 00:57:55.000000000 +0200
+@@ -179,6 +179,7 @@
+ #include "bitmaps/hand_down_mask.xbm"
+ #include "bitmaps/hand_up.xbm"
+ #include "bitmaps/hand_up_mask.xbm"
++#include "bitmaps/gentoo.xbm"
+
+ typedef struct cursormap {
+ const char *name;
+@@ -195,7 +196,7 @@
+ static cursormap cursors[] = {
+ CURSOR_ADD(apple), CURSOR_ADD(bsd), CURSOR_ADD(hurd),
+ CURSOR_ADD(linux), CURSOR_ADD(next), CURSOR_ADD(os2), CURSOR_ADD(palm),
+- CURSOR_ADD(redhat), CURSOR_ADD(sgi), CURSOR_ADD(sun),
++ CURSOR_ADD(redhat), CURSOR_ADD(sgi), CURSOR_ADD(sun), CURSOR_ADD(gentoo),
+ CURSOR_ADD(bucket),
+ CURSOR_ADD_MASKED(hand_up), CURSOR_ADD_MASKED(hand_down),
+ {NULL, 0, 0, NULL, NULL},
+diff -urN xbill-2.1.orig/Makefile.in xbill-2.1/Makefile.in
+--- xbill-2.1.orig/Makefile.in 2001-10-30 19:31:09.000000000 +0100
++++ xbill-2.1/Makefile.in 2008-08-23 00:50:05.000000000 +0200
+@@ -46,13 +46,13 @@
+ pixmaps/palm.xpm pixmaps/palmcpu.xpm pixmaps/redhat.xpm \
+ pixmaps/sgi.xpm pixmaps/sgicpu.xpm pixmaps/spark_0.xpm \
+ pixmaps/spark_1.xpm pixmaps/sun.xpm pixmaps/suncpu.xpm \
+- pixmaps/toaster.xpm pixmaps/wingdows.xpm
++ pixmaps/toaster.xpm pixmaps/wingdows.xpm pixmaps/gentoo.xpm
+
+ XBMS = bitmaps/apple.xbm bitmaps/bsd.xbm bitmaps/bucket.xbm \
+ bitmaps/hand_down.xbm bitmaps/hand_down_mask.xbm bitmaps/hand_up.xbm \
+ bitmaps/hand_up_mask.xbm bitmaps/hurd.xbm bitmaps/linux.xbm \
+ bitmaps/next.xbm bitmaps/os2.xbm bitmaps/palm.xbm bitmaps/redhat.xbm \
+- bitmaps/sgi.xbm bitmaps/sun.xbm
++ bitmaps/sgi.xbm bitmaps/sun.xbm bitmaps/gentoo.xbm
+
+ MANDIR = man6
+ MAN = xbill.6
+diff -urN xbill-2.1.orig/OS.c xbill-2.1/OS.c
+--- xbill-2.1.orig/OS.c 2001-10-30 19:28:27.000000000 +0100
++++ xbill-2.1/OS.c 2008-08-23 00:50:26.000000000 +0200
+@@ -7,7 +7,7 @@
+ #define MIN_PC 6 /* OS >= MIN_PC means the OS is a PC OS */
+
+ static const char *osname[] = {"wingdows", "apple", "next", "sgi", "sun",
+- "palm", "os2", "bsd", "linux", "redhat", "hurd"};
++ "palm", "os2", "bsd", "linux", "redhat", "hurd", "gentoo"};
+ #define NUM_OS (sizeof(osname) / sizeof(osname[0]))
+
+ static Picture *os[NUM_OS]; /* array of OS pictures*/
+diff -urN xbill-2.1.orig/pixmaps/gentoo.xpm xbill-2.1/pixmaps/gentoo.xpm
+--- xbill-2.1.orig/pixmaps/gentoo.xpm 1970-01-01 01:00:00.000000000 +0100
++++ xbill-2.1/pixmaps/gentoo.xpm 2008-08-23 00:49:01.000000000 +0200
+@@ -0,0 +1,283 @@
++/* XPM */
++static char * gentoo_xpm[] = {
++"28 24 256 2",
++" c None",
++". c #9B91FA",
++"+ c #998FFB",
++"@ c #9D97C7",
++"# c #958EC6",
++"$ c #FEFEFE",
++"% c #FFFFFF",
++"& c #FCFCFE",
++"* c #F3F3FC",
++"= c #C4C0EF",
++"- c #948BE3",
++"; c #958BF1",
++"> c #9992D1",
++", c #D8D6F0",
++"' c #F7F7FC",
++") c #EDEDFB",
++"! c #E4E3FA",
++"~ c #DAD9F8",
++"{ c #9185F7",
++"] c #9287F7",
++"^ c #948BE4",
++"/ c #FAFAFD",
++"( c #F0F0FC",
++"_ c #E7E6FA",
++": c #DCDCF7",
++"< c #D3D2F7",
++"[ c #C9C8F5",
++"} c #9D95F6",
++"| c #9184F7",
++"1 c #8F83F4",
++"2 c #FCFCFD",
++"3 c #F2F2FB",
++"4 c #E9E8FA",
++"5 c #DFDEF8",
++"6 c #D5D4F6",
++"7 c #CBCAF4",
++"8 c #C1C0F3",
++"9 c #BBBAF2",
++"0 c #AAA4F4",
++"a c #9388F8",
++"b c #CECDF5",
++"c c #9E95F6",
++"d c #E0E0F8",
++"e c #D6D5F7",
++"f c #CCCBF5",
++"g c #C2C1F2",
++"h c #BBB8F2",
++"i c #B5B2F4",
++"j c #B5B2F2",
++"k c #9084EF",
++"l c #8E82F8",
++"m c #EBE9FD",
++"n c #9184F2",
++"o c #9084F0",
++"p c #998FF6",
++"q c #908AB7",
++"r c #D5D5F5",
++"s c #CCCCF4",
++"t c #C3C2F3",
++"u c #BBB9F2",
++"v c #B5B2F3",
++"w c #AFABF3",
++"x c #C3C2F4",
++"y c #C6C6F4",
++"z c #8E81F4",
++"A c #9186ED",
++"B c #9287ED",
++"C c #9287EB",
++"D c #524C76",
++"E c #CCCBF4",
++"F c #BBB9F3",
++"G c #AFABF4",
++"H c #AAA5F5",
++"I c #D9D8F6",
++"J c #DADAF7",
++"K c #9085EF",
++"L c #C5C2F6",
++"M c #FEFEFF",
++"N c #9D97C9",
++"O c #8C86B3",
++"P c #938AE6",
++"Q c #514C76",
++"R c #CBCBF5",
++"S c #BAB9F2",
++"T c #B4B1F3",
++"U c #AFAAF4",
++"V c #A9A4F5",
++"W c #A59DF6",
++"X c #E0DEF9",
++"Y c #EFEFFC",
++"Z c #9388EA",
++"` c #BCBCF3",
++" . c #BCBBF2",
++".. c #BEBDF2",
++"+. c #FBFBFE",
++"@. c #FAFAFF",
++"#. c #E7E7F9",
++"$. c #DEDEF9",
++"%. c #D4D4F7",
++"&. c #CAC9F4",
++"*. c #C0BFF3",
++"=. c #BAB8F2",
++"-. c #B4B0F4",
++";. c #AEAAF4",
++">. c #A9A3F5",
++",. c #A39CF6",
++"'. c #9F96F5",
++"). c #958AE3",
++"!. c #D2D2F6",
++"~. c #D3D2F6",
++"{. c #D6D5F6",
++"]. c #F9F9FD",
++"^. c #EFEFFB",
++"/. c #E5E5F9",
++"(. c #DCDBF8",
++"_. c #D2D1F6",
++":. c #C8C7F4",
++"<. c #BFBEF3",
++"[. c #B9B7F2",
++"}. c #B3AFF4",
++"|. c #ADA9F3",
++"1. c #A9A1F5",
++"2. c #A29CF6",
++"3. c #9E95F7",
++"4. c #F3F2FE",
++"5. c #968DDE",
++"6. c #968EDD",
++"7. c #978DDC",
++"8. c #988EDB",
++"9. c #EAEAFA",
++"0. c #FFFFFE",
++"a. c #F5F5FD",
++"b. c #EBEBFB",
++"c. c #E2E2F8",
++"d. c #D8D8F8",
++"e. c #D0CEF6",
++"f. c #C6C5F4",
++"g. c #B7B4F3",
++"h. c #B1AEF4",
++"i. c #ADA8F5",
++"j. c #A7A1F5",
++"k. c #A19AF6",
++"l. c #9D93F7",
++"m. c #9890D6",
++"n. c #FBFBFD",
++"o. c #FAFAFE",
++"p. c #F1F1FB",
++"q. c #E8E7F9",
++"r. c #D5D5F7",
++"s. c #C2C1F3",
++"t. c #BBBAF3",
++"u. c #B5B3F2",
++"v. c #B1ACF4",
++"w. c #ABA6F4",
++"x. c #A69FF5",
++"y. c #A199F6",
++"z. c #9D96C8",
++"A. c #FDFDFD",
++"B. c #F5F5FC",
++"C. c #ECECFB",
++"D. c #E3E3F9",
++"E. c #D2D0F6",
++"F. c #C8C8F5",
++"G. c #BFBEF2",
++"H. c #B9B7F3",
++"I. c #AAA4F5",
++"J. c #9E96F5",
++"K. c #9B95C3",
++"L. c #9B95C2",
++"M. c #CDCCF4",
++"N. c #C4C3F3",
++"O. c #BCBAF2",
++"P. c #B1AEF3",
++"Q. c #ACA8F4",
++"R. c #958FBC",
++"S. c #948EBB",
++"T. c #F8F8FC",
++"U. c #F1F1FC",
++"V. c #E9E9FB",
++"W. c #E1E1F9",
++"X. c #D9D8F8",
++"Y. c #D0D0F6",
++"Z. c #C7C7F4",
++"`. c #B5B1F4",
++" + c #B0ABF4",
++".+ c #908AB8",
++"++ c #8E88B6",
++"@+ c #8E88B5",
++"#+ c #9892C2",
++"$+ c #FEFEFD",
++"%+ c #F1F0FB",
++"&+ c #EAE9FA",
++"*+ c #E2E2F9",
++"=+ c #DBDAF7",
++"-+ c #CBCAF5",
++";+ c #BCB9F2",
++">+ c #B6B4F2",
++",+ c #8A84B1",
++"'+ c #8983B0",
++")+ c #9791BE",
++"!+ c #F0EFFB",
++"~+ c #E8E9FB",
++"{+ c #E2E1F9",
++"]+ c #DBDAF8",
++"^+ c #D3D3F7",
++"/+ c #C5C4F4",
++"(+ c #D0CFF7",
++"_+ c #857FAB",
++":+ c #847EAA",
++"<+ c #837DA8",
++"[+ c #F6F6FD",
++"}+ c #F2F1FC",
++"|+ c #ECECFA",
++"1+ c #E6E7F9",
++"2+ c #E1E0F9",
++"3+ c #D4D3F6",
++"4+ c #C5C4F3",
++"5+ c #D1CFDF",
++"6+ c #7E78A5",
++"7+ c #7D77A4",
++"8+ c #F3F2FB",
++"9+ c #F0EFFC",
++"0+ c #E8E8FA",
++"a+ c #DFDEF9",
++"b+ c #D3D1F5",
++"c+ c #C3C3F3",
++"d+ c #FDFDFE",
++"e+ c #78729E",
++"f+ c #77719D",
++"g+ c #76709C",
++"h+ c #EAEAFB",
++"i+ c #E6E6FA",
++"j+ c #6B6594",
++"k+ c #736D99",
++"l+ c #736D98",
++"m+ c #726C97",
++"n+ c #7A749F",
++"o+ c #DADAF8",
++"p+ c #6F6995",
++"q+ c #6E6894",
++"r+ c #6C6693",
++"s+ c #6C6692",
++"t+ c #C7C4D5",
++"u+ c #6D6792",
++"v+ c #6B658F",
++"w+ c #6A648E",
++"x+ c #68628D",
++"y+ c #67618D",
++"z+ c #67618B",
++"A+ c #69638E",
++"B+ c #68628E",
++"C+ c #67618C",
++"D+ c #655F8A",
++"E+ c #645E89",
++"F+ c #645E88",
++"G+ c #635D88",
++" . + ",
++" @ # $ % % & * = - ; ",
++" > , % % % % % % ' ) ! ~ { ] ",
++" ^ % % % % % % % % / ( _ : < [ } | ",
++" 1 $ $ $ $ $ $ $ $ $ 2 3 4 5 6 7 8 9 0 ",
++" a % $ % $ % $ % $ % $ % b c d e f g h i j k ",
++" l % % % $ $ % % $ $ % m n o p q r s t u v w x y ",
++" z $ % % $ $ % % $ $ v A B C C D D E g F i G H I J ",
++" K G L % % % % % % % M N O P Q e R g S T U V W X Y ",
++" Z ` ...$ % % % $ % % +.@.#.$.%.&.*.=.-.;.>.,.'.$ $ ",
++" ).).!.~.{.% $ $ $ % ].^./.(._.:.<.[.}.|.1.2.3.4.$ ",
++" 5.6.7.8.9.) $ $ 0.a.b.c.d.e.f.` g.h.i.j.k.l.$ $ ",
++" m.n.$ % $ o.p.q.5 r.f s.t.u.v.w.x.y.$ % z.",
++" $ $ $ $ $ A.B.C.D.J E.F.G.H.T ;.I.J.$ $ K.L.",
++" $ $ % $ $ $ ' ^._ $.e M.N.O.g.P.Q.% % $ R.S. ",
++" $ $ % $ $ $ T.U.V.W.X.Y.Z.<.H.`. +$ % .+++@+ ",
++" #+$ $ $ $ $ $+T.%+&+*+=+!.-+t ;+>+% $ $ ,+'+ ",
++" )+$ % % $ $ / B.!+~+{+]+^+f /+ .(+$ % _+:+<+ ",
++" % $ % & ].[+}+|+1+2+=+3+s 4+9 % % 5+6+7+ ",
++"'+$ [+B.8+9+C.0+! a+X.b+f c+$ % d+e+f+g+ ",
++" $ $ h+~+i+c.a+~ e Y.$ % % j+k+l+m+ ",
++" n+% % ].J o+0.$ $ % % p+q+r+s+ ",
++" l+m+t+% $ $ % u+v+w+x+y+z+ ",
++" A+B+y+C+D+E+F+G+ "};
diff --git a/games-arcade/xbill/files/xbill-2.1-gtk2.patch b/games-arcade/xbill/files/xbill-2.1-gtk2.patch
new file mode 100644
index 000000000000..70817b09c7ab
--- /dev/null
+++ b/games-arcade/xbill/files/xbill-2.1-gtk2.patch
@@ -0,0 +1,18 @@
+--- configure.in.old 2007-12-05 22:37:57.000000000 +0100
++++ configure.in 2007-12-05 22:54:57.000000000 +0100
+@@ -88,12 +88,11 @@
+ [ --enable-gtk build with the GTK widget set])
+
+ if test "$enable_gtk" != "no"; then
+- AC_CHECK_PROG(GTKCONFIG, gtk-config, yes, no)
++ PKG_CHECK_MODULES(GTK, gtk+-2.0)
+
+- if test "X$GTKCONFIG" = X"yes"; then
++ if test $pkg_failed = no; then
+ AC_DEFINE(USE_GTK)
+- GTK_CFLAGS="`gtk-config --cflags`"
+- WIDGET_LIBS="$WIDGET_LIBS `gtk-config --libs`"
++ WIDGET_LIBS="$WIDGET_LIBS $GTK_LIBS"
+ WIDGET_OBJS="$WIDGET_OBJS gtk.o"
+ fi
+ fi
diff --git a/games-arcade/xbill/metadata.xml b/games-arcade/xbill/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-arcade/xbill/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-arcade/xbill/xbill-2.1-r2.ebuild b/games-arcade/xbill/xbill-2.1-r2.ebuild
new file mode 100644
index 000000000000..8d5c88a60641
--- /dev/null
+++ b/games-arcade/xbill/xbill-2.1-r2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils autotools games
+
+DESCRIPTION="A game about an evil hacker called Bill!"
+HOMEPAGE="http://www.xbill.org/"
+SRC_URI="http://www.xbill.org/download/${P}.tar.gz"
+
+LICENSE="GPL-1"
+SLOT="0"
+KEYWORDS="alpha amd64 x86"
+IUSE="gtk"
+
+RDEPEND="gtk? ( x11-libs/gtk+:2 )
+ !gtk? ( x11-libs/libXaw )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-gtk2.patch \
+ "${FILESDIR}"/${P}-gentoo.patch
+ eautoreconf
+}
+
+src_configure() {
+ egamesconf \
+ --disable-motif \
+ $(use_enable gtk) \
+ $(use_enable !gtk athena)
+}
+
+src_install() {
+ default
+ newicon pixmaps/icon.xpm ${PN}.xpm
+ make_desktop_entry ${PN} XBill ${PN}
+ prepgamesdirs
+}